[easytag] Do not use gdk_cursor_unref() with Gdk3



commit cde61f8f5ceb5cbaacf0574b157bf5393a395b66
Author: Florian MÃllner <fmuellner gnome org>
Date:   Mon Feb 11 01:21:20 2013 +0100

    Do not use gdk_cursor_unref() with Gdk3
    
    GdkCursor is no longer a boxed type in Gdk3 but a full-blown GObject.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=693569

 src/misc.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/misc.c b/src/misc.c
index 58dad0c..4e1a4e9 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -576,7 +576,11 @@ Destroy_Mouse_Cursor (void)
 {
     if (MouseCursor)
     {
-        gdk_cursor_unref(MouseCursor);
+#if GTK_CHECK_VERSION (3,0,0)
+        g_object_unref (MouseCursor);
+#else
+        gdk_cursor_unref (MouseCursor);
+#endif
         MouseCursor = NULL;
     }
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]