[eog] Use GDK_BLANK_CURSOR for the hidden cursor



commit 887e6c96159bb14c03106d45eb964a10734db90b
Author: Claudio Saavedra <csaavedra igalia com>
Date:   Thu Aug 12 01:58:24 2010 +0300

    Use GDK_BLANK_CURSOR for the hidden cursor
    
    No need to use a GdkBitmap for this.

 src/eog-scroll-view.c |   14 +-------------
 1 files changed, 1 insertions(+), 13 deletions(-)
---
diff --git a/src/eog-scroll-view.c b/src/eog-scroll-view.c
index f83f556..663a85b 100644
--- a/src/eog-scroll-view.c
+++ b/src/eog-scroll-view.c
@@ -351,18 +351,6 @@ update_scrollbar_values (EogScrollView *view)
 	}
 }
 
-static GdkCursor *
-eog_scroll_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);
-}
-
 static void
 eog_scroll_view_set_cursor (EogScrollView *view, EogScrollViewCursor new_cursor)
 {
@@ -383,7 +371,7 @@ eog_scroll_view_set_cursor (EogScrollView *view, EogScrollViewCursor new_cursor)
 			gdk_window_set_cursor (gtk_widget_get_window (widget), NULL);
 			break;
                 case EOG_SCROLL_VIEW_CURSOR_HIDDEN:
-                        cursor = eog_scroll_view_create_invisible_cursor ();
+                        cursor = gdk_cursor_new (GDK_BLANK_CURSOR);
                         break;
 		case EOG_SCROLL_VIEW_CURSOR_DRAG:
 			cursor = gdk_cursor_new_for_display (display, GDK_FLEUR);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]