Re: gnome-about ported to Gnome 2.0



On Thu, 2002-02-21 at 11:40, Deepa Chacko Pillai wrote:
> Hi
> 
> I have ported gnome-about to GNOME 2.0. I have removed all the
> deprecated calls except for GdkFont. I will deliver a separate patch
> once I am done with that. I will make the session management changes
> also in the next patch.

i would remove:

>  static void
> -unref_gdk_pixbuf (GtkObject *object, gpointer data)
> +unref_gdk_pixbuf (GObject *object, gpointer data)
>  {
> -	gdk_pixbuf_unref (data);
> +	g_object_unref (data);
>  }

and change:

> +	g_signal_connect (G_OBJECT (image), "destroy",
> +			  G_CALLBACK (unref_gdk_pixbuf), im);

to:

	g_signal_connect_swapped (image, "destroy",
				  G_CALLBACK (g_object_unref),
				  im);

jacob  
-- 



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