]> www.fi.muni.cz Git - evince.git/commitdiff
[libview] Use GDK_BLANK_CURSOR instead of creating our own empty cursor
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sat, 14 Aug 2010 12:27:36 +0000 (14:27 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Sat, 14 Aug 2010 12:27:36 +0000 (14:27 +0200)
libview/ev-view-cursor.c

index 67cacd73d6da714b7b8c81165b77aa80a4da7514..58d04a27dd926922dcad24d76bafb184c7cedec6 100644 (file)
 
 #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);