diff options
| author | Alexander Valavanis <valavanisalex@gmail.com> | 2017-07-05 22:57:09 +0000 |
|---|---|---|
| committer | Alexander Valavanis <valavanisalex@gmail.com> | 2017-07-05 22:57:09 +0000 |
| commit | 58f3f347f828b8bfe0fb01ba3194ee5ec3a8c961 (patch) | |
| tree | c1e4647b685cf05844bd3dffcb324d6a4942f88c /src/sp-cursor.cpp | |
| parent | Merge branch 'ccrb/inkscape-fix-template-preview-crash' (diff) | |
| download | inkscape-58f3f347f828b8bfe0fb01ba3194ee5ec3a8c961.tar.gz inkscape-58f3f347f828b8bfe0fb01ba3194ee5ec3a8c961.zip | |
cursors: rm deprecated gtkstyle custom black/white
Diffstat (limited to 'src/sp-cursor.cpp')
| -rw-r--r-- | src/sp-cursor.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/sp-cursor.cpp b/src/sp-cursor.cpp index 78bfc9075..641585d6f 100644 --- a/src/sp-cursor.cpp +++ b/src/sp-cursor.cpp @@ -54,7 +54,7 @@ struct RGBA { } }; -GdkCursor *sp_cursor_from_xpm(char const *const *xpm, GdkColor *black, GdkColor *white, guint32 fill, guint32 stroke) +GdkCursor *sp_cursor_from_xpm(char const *const *xpm, guint32 fill, guint32 stroke) { GdkPixbuf *pixbuf; GdkCursor *cursor; @@ -97,10 +97,6 @@ GdkCursor *sp_cursor_from_xpm(char const *const *xpm, GdkColor *black, GdkColor colorMap[ccode] = RGBA(SP_RGBA32_R_U(fill), SP_RGBA32_G_U(fill), SP_RGBA32_B_U(fill), SP_RGBA32_A_U(fill)); } else if (strcmp(p, "Stroke") == 0) { colorMap[ccode] = RGBA(SP_RGBA32_R_U(stroke), SP_RGBA32_G_U(stroke), SP_RGBA32_B_U(stroke), SP_RGBA32_A_U(stroke)); - } else if (black && strcmp(p, "#000000") == 0) { - colorMap[ccode] = RGBA(black->red, black->green, black->blue, 255); - } else if (white && strcmp(p, "#FFFFFF") == 0) { - colorMap[ccode] = RGBA(white->red, white->green, white->blue, 255); } else if (p[0] == '#') { GdkRGBA color; if (gdk_rgba_parse(&color, p)) { |
