diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/eom-print-preview.c | 4 | ||||
-rw-r--r-- | src/eom-scroll-view.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/eom-print-preview.c b/src/eom-print-preview.c index dd8dba2..ba45f8a 100644 --- a/src/eom-print-preview.c +++ b/src/eom-print-preview.c @@ -977,7 +977,11 @@ motion_notify_event_cb (GtkWidget *widget, GDK_FLEUR); gdk_window_set_cursor (gtk_widget_get_window (widget), cursor); +#if GTK_CHECK_VERSION (3, 0, 0) + g_object_unref (cursor); +#else gdk_cursor_unref (cursor); +#endif } else { gdk_window_set_cursor (gtk_widget_get_window (widget), NULL); diff --git a/src/eom-scroll-view.c b/src/eom-scroll-view.c index d3015c6..53fda38 100644 --- a/src/eom-scroll-view.c +++ b/src/eom-scroll-view.c @@ -405,7 +405,11 @@ eom_scroll_view_set_cursor (EomScrollView *view, EomScrollViewCursor new_cursor) if (cursor) { gdk_window_set_cursor (gtk_widget_get_window (widget), cursor); +#if GTK_CHECK_VERSION (3, 0, 0) + g_object_unref (cursor); +#else gdk_cursor_unref (cursor); +#endif gdk_flush(); } } |