diff options
author | Wolfgang Ulbrich <[email protected]> | 2016-01-15 16:09:47 +0100 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2016-01-15 16:09:47 +0100 |
commit | 2de22faab6d8918f6d5001edeb3f794cac829710 (patch) | |
tree | b8dd8e221be8d6fdaefc4f5ea7299f0993e4ba87 /libcaja-private | |
parent | 76cad7a49fd7c5876e780bda4823d55a73ed2556 (diff) | |
download | caja-2de22faab6d8918f6d5001edeb3f794cac829710.tar.bz2 caja-2de22faab6d8918f6d5001edeb3f794cac829710.tar.xz |
GTK3 general: don't use gdk_cursor_unref()
taken from:
https://git.gnome.org/browse/nautilus/commit/?id=74a8f78
Diffstat (limited to 'libcaja-private')
-rw-r--r-- | libcaja-private/caja-icon-canvas-item.c | 4 | ||||
-rw-r--r-- | libcaja-private/caja-icon-container.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/libcaja-private/caja-icon-canvas-item.c b/libcaja-private/caja-icon-canvas-item.c index e8787406..21da113f 100644 --- a/libcaja-private/caja-icon-canvas-item.c +++ b/libcaja-private/caja-icon-canvas-item.c @@ -2592,7 +2592,11 @@ caja_icon_canvas_item_event (EelCanvasItem *item, GdkEvent *event) cursor = gdk_cursor_new_for_display (gdk_display_get_default(), GDK_HAND2); gdk_window_set_cursor (((GdkEventAny *)event)->window, cursor); +#if GTK_CHECK_VERSION(3,0,0) + g_object_unref (cursor); +#else gdk_cursor_unref (cursor); +#endif } /* FIXME bugzilla.gnome.org 42473: diff --git a/libcaja-private/caja-icon-container.c b/libcaja-private/caja-icon-container.c index a4f2fc1b..c6186295 100644 --- a/libcaja-private/caja-icon-container.c +++ b/libcaja-private/caja-icon-container.c @@ -5026,7 +5026,11 @@ start_stretching (CajaIconContainer *container) cursor, GDK_CURRENT_TIME); if (cursor) +#if GTK_CHECK_VERSION(3,0,0) + g_object_unref (cursor); +#else gdk_cursor_unref (cursor); +#endif /* Ensure the window itself is focused.. */ toplevel = gtk_widget_get_toplevel (GTK_WIDGET (container)); |