diff options
author | raveit65 <[email protected]> | 2015-07-23 20:11:57 +0200 |
---|---|---|
committer | infirit <[email protected]> | 2015-08-31 22:35:16 +0200 |
commit | 2d5db548f1362d9d485c726b6cf7a05f69c04257 (patch) | |
tree | 8f30634dcd6d5e93ce8e9dcb932228c4c008ea26 /src/eom-scroll-view.c | |
parent | 7dc23854634e8177fb03d403c0f71e9c10830694 (diff) | |
download | eom-2d5db548f1362d9d485c726b6cf7a05f69c04257.tar.bz2 eom-2d5db548f1362d9d485c726b6cf7a05f69c04257.tar.xz |
GTK3: Don't use deprecated gdk_cursor_unref() for gtk+ >=3.0.0
Diffstat (limited to 'src/eom-scroll-view.c')
-rw-r--r-- | src/eom-scroll-view.c | 4 |
1 files changed, 4 insertions, 0 deletions
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(); } } |