From: Carlos Garcia Campos Date: Sun, 26 Dec 2010 10:42:03 +0000 (+0100) Subject: libview: Don't use gdk_cursor_unref() X-Git-Tag: EVINCE_2_91_5~25 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=480e86e21cd0534a4f278b747c5f499b867f53d9;p=evince.git libview: Don't use gdk_cursor_unref() --- diff --git a/libview/ev-annotation-window.c b/libview/ev-annotation-window.c index da77200c..f47d9f6d 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 9cc74af7..7c03116b 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 63df4969..373a6252 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