From: Carlos Garcia Campos Date: Sat, 14 Aug 2010 12:27:36 +0000 (+0200) Subject: [libview] Use GDK_BLANK_CURSOR instead of creating our own empty cursor X-Git-Tag: EVINCE_2_31_90~9 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=09c1fcfdc11900886732141708f77bba6b458d89;p=evince.git [libview] Use GDK_BLANK_CURSOR instead of creating our own empty cursor --- diff --git a/libview/ev-view-cursor.c b/libview/ev-view-cursor.c index 67cacd73..58d04a27 100644 --- a/libview/ev-view-cursor.c +++ b/libview/ev-view-cursor.c @@ -19,18 +19,6 @@ #include "ev-view-cursor.h" -static GdkCursor * -ev_view_create_invisible_cursor (void) -{ - GdkBitmap *empty; - GdkColor black = { 0, 0, 0, 0 }; - static char bits[] = { 0x00 }; - - empty = gdk_bitmap_create_from_data (NULL, bits, 1, 1); - - return gdk_cursor_new_from_pixmap (empty, empty, &black, &black, 0, 0); -} - GdkCursor * ev_view_cursor_new (GdkDisplay *display, EvViewCursor new_cursor) @@ -50,7 +38,7 @@ ev_view_cursor_new (GdkDisplay *display, cursor = gdk_cursor_new_for_display (display, GDK_WATCH); break; case EV_VIEW_CURSOR_HIDDEN: - cursor = ev_view_create_invisible_cursor (); + cursor = gdk_cursor_new_for_display (display, GDK_BLANK_CURSOR); break; case EV_VIEW_CURSOR_DRAG: cursor = gdk_cursor_new_for_display (display, GDK_FLEUR);