[evince] [libview] Use GDK_BLANK_CURSOR instead of creating our own empty cursor



commit 09c1fcfdc11900886732141708f77bba6b458d89
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Sat Aug 14 14:27:36 2010 +0200

    [libview] Use GDK_BLANK_CURSOR instead of creating our own empty cursor

 libview/ev-view-cursor.c |   14 +-------------
 1 files changed, 1 insertions(+), 13 deletions(-)
---
diff --git a/libview/ev-view-cursor.c b/libview/ev-view-cursor.c
index 67cacd7..58d04a2 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);



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