From 58f3f347f828b8bfe0fb01ba3194ee5ec3a8c961 Mon Sep 17 00:00:00 2001 From: Alexander Valavanis Date: Thu, 6 Jul 2017 00:57:09 +0200 Subject: cursors: rm deprecated gtkstyle custom black/white --- src/sp-cursor.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/sp-cursor.cpp') 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)) { -- cgit v1.2.3