summaryrefslogtreecommitdiff
path: root/cut-n-paste/toolbar-editor/egg-editable-toolbar.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2015-07-23 20:11:57 +0200
committerinfirit <[email protected]>2015-08-31 22:35:16 +0200
commit2d5db548f1362d9d485c726b6cf7a05f69c04257 (patch)
tree8f30634dcd6d5e93ce8e9dcb932228c4c008ea26 /cut-n-paste/toolbar-editor/egg-editable-toolbar.c
parent7dc23854634e8177fb03d403c0f71e9c10830694 (diff)
downloadeom-2d5db548f1362d9d485c726b6cf7a05f69c04257.tar.bz2
eom-2d5db548f1362d9d485c726b6cf7a05f69c04257.tar.xz
GTK3: Don't use deprecated gdk_cursor_unref() for gtk+ >=3.0.0
Diffstat (limited to 'cut-n-paste/toolbar-editor/egg-editable-toolbar.c')
-rw-r--r--cut-n-paste/toolbar-editor/egg-editable-toolbar.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c
index ced3971..0158cda 100644
--- a/cut-n-paste/toolbar-editor/egg-editable-toolbar.c
+++ b/cut-n-paste/toolbar-editor/egg-editable-toolbar.c
@@ -430,7 +430,11 @@ configure_item_cursor (GtkToolItem *item,
cursor = gdk_cursor_new_for_display (gdk_screen_get_display (screen),
GDK_HAND2);
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
gtk_drag_source_set (widget, GDK_BUTTON1_MASK, dest_drag_types,
G_N_ELEMENTS (dest_drag_types), GDK_ACTION_MOVE);