[evince] libview: Don't use gdk_cursor_unref()



commit 480e86e21cd0534a4f278b747c5f499b867f53d9
Author: Carlos Garcia Campos <carlosgc gnome org>
Date:   Sun Dec 26 11:42:03 2010 +0100

    libview: Don't use gdk_cursor_unref()

 libview/ev-annotation-window.c |    2 +-
 libview/ev-view-presentation.c |    2 +-
 libview/ev-view.c              |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/libview/ev-annotation-window.c b/libview/ev-annotation-window.c
index da77200..f47d9f6 100644
--- a/libview/ev-annotation-window.c
+++ b/libview/ev-annotation-window.c
@@ -253,7 +253,7 @@ ev_annotation_window_set_resize_cursor (GtkWidget          *widget,
 						     GDK_BOTTOM_LEFT_CORNER :
 						     GDK_BOTTOM_RIGHT_CORNER);
 		gdk_window_set_cursor (gdk_window, cursor);
-		gdk_cursor_unref (cursor);
+		g_object_unref (cursor);
 	} else {
 		gdk_window_set_cursor (gdk_window, NULL);
 	}
diff --git a/libview/ev-view-presentation.c b/libview/ev-view-presentation.c
index 9cc74af..7c03116 100644
--- a/libview/ev-view-presentation.c
+++ b/libview/ev-view-presentation.c
@@ -843,7 +843,7 @@ ev_view_presentation_set_cursor (EvViewPresentation *pview,
 	gdk_window_set_cursor (gtk_widget_get_window (widget), cursor);
 	gdk_flush ();
 	if (cursor)
-		gdk_cursor_unref (cursor);
+		g_object_unref (cursor);
 }
 
 static void
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 63df496..373a625 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -6253,7 +6253,7 @@ ev_view_set_cursor (EvView *view, EvViewCursor new_cursor)
 	gdk_window_set_cursor (window, cursor);
 	gdk_flush ();
 	if (cursor)
-		gdk_cursor_unref (cursor);
+		g_object_unref (cursor);
 }
 
 void



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