missing ifdef for g_object_ref_sink call

Andrea Visinoni andrea at puntualmenteinritardo.com
Sat Jun 21 11:42:47 EDT 2008


Andrea Visinoni ha scritto:
> http://developer.pidgin.im/viewmtn/revision/diff/4037e908f8c3536d50d9439ec2eec0f4d6ee3b60/with/777e7e6c4fb02c0b0f0dc557554cfc83b92544ae
> 
> --- pidgin/gtkmenutray.c        379e9d48d2bb7d9a67fe6927cccdab5263f55971
> +++ pidgin/gtkmenutray.c        c4af27d6a7547ba2eb2b37be6b0e7feb47b2c20d
> @@ -99,8 +99,12 @@ pidgin_menu_tray_finalize(GObject *obj)
>   #endif
> 
>          if (tray->tooltips)
> +#if GLIB_CHECK_VERSION(2,10,0)
>                  g_object_ref_sink(G_OBJECT(tray->tooltips));
> -
> +#else
> +        g_object_ref(G_OBJECT(tray->tooltips));
> +        gtk_object_sink(GTK_OBJECT(G_OBJECT(tray->tooltips)));
> +#endif
>          G_OBJECT_CLASS(parent_class)->finalize(obj);
>   }
> 
> 
> Andrea
> 
> _______________________________________________
> Devel mailing list
> Devel at pidgin.im
> http://pidgin.im/cgi-bin/mailman/listinfo/devel
> 
Ops, missing braches

--- pidgin/gtkmenutray.c        379e9d48d2bb7d9a67fe6927cccdab5263f55971
+++ pidgin/gtkmenutray.c        b80d9e1991b44ead16d95cb0dfb68b20fe9d5c74
@@ -99,8 +99,14 @@ pidgin_menu_tray_finalize(GObject *obj)
  #endif

         if (tray->tooltips)
+#if GLIB_CHECK_VERSION(2,10,0)
                 g_object_ref_sink(G_OBJECT(tray->tooltips));
-
+#else
+    {
+        g_object_ref(G_OBJECT(tray->tooltips));
+        gtk_object_sink(GTK_OBJECT(G_OBJECT(tray->tooltips)));
+    }
+#endif
         G_OBJECT_CLASS(parent_class)->finalize(obj);
  }

Andrea




More information about the Devel mailing list