]> www.fi.muni.cz Git - evince.git/commitdiff
libview: Don't use gdk_cursor_unref()
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 26 Dec 2010 10:42:03 +0000 (11:42 +0100)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 26 Dec 2010 10:45:19 +0000 (11:45 +0100)
libview/ev-annotation-window.c
libview/ev-view-presentation.c
libview/ev-view.c

index da77200cbbdda2331d1c923072470ce95cbe2a03..f47d9f6da10f48d84e1c63e204e5b47be0af3f6c 100644 (file)
@@ -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);
        }
index 9cc74af710b1c1b446c60250cf04ceb83eb87985..7c03116b1e96a6c368aa636f948b360494673e3b 100644 (file)
@@ -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
index 63df49699712f1c5103cc12ef78764cd143f9d75..373a62522e1d445df627c5c74362ef6aabb13096 100644 (file)
@@ -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