On Wed, Dec 27, 2006 at 11:23:16AM -0800, Daniel Yek wrote: > I'm trying to get rid of the deprecated gdk_pixbuf_unref() calls in the > *_interface.c files from Glade-2. > > Is there a recommended way to do that? Is Glade-2 going to be fixed to not > produce deprecated function calls? > > This particular fix is really easy -- just replacing gdk_pixbuf_unref() > with g_object_unref(). > > If there is no interest in fixing Glade-2, is there a work-around I can use > without manually changing / post-processing the generated files?
Keep them there, this is just a futile excercise. The whole code generation thing is deprecated, so any generated code is essentially deprecated by definition. gdk_pixbuf_unref() is defined void gdk_pixbuf_unref (GdkPixbuf *pixbuf) { g_object_unref (pixbuf); } therefore it does exactly what it should and it isn't going to disappear sooner than in Gtk+ 3.0. If you compile your code with various -DFOO_DISABLE_DEPRECATED then I hope you don't do this in the production version because it's not forward-compatible and I suggest to just leave out these defines for the [deprecated] generated code. Yeti -- Whatever. _______________________________________________ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list