From 480e86e21cd0534a4f278b747c5f499b867f53d9 Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Sun, 26 Dec 2010 11:42:03 +0100 Subject: [PATCH] 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 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 -- 2.43.5