Re: CVS-1-27 compile error explained



On Sat, 2005-29-01 at 17:38 -0500, Dan Williams wrote:
> Well, I decided to try not to use deprecated functions, and since a number 
> of the gnome guys here at work have been trying to get rid of libgnomeui 
> (for good reason), it seems this one has gone away.  I'll have to ask 
> around what the replacement for it is.

The replacement is gtk_window_set_default_icon_from_file().  This was
the panel-applet's only dependency on libgnomeui, so the #include can be
removed too.  Patch attached.

The only remaining dependency on libgnomeui is gnome-password-dialog in
info-daemon/NetworkManagerInfoVPN.c, but that's not deprecated yet.

-- 
Nathan
Index: panel-applet/NMWirelessApplet.c
===================================================================
RCS file: /cvs/gnome/NetworkManager/panel-applet/NMWirelessApplet.c,v
retrieving revision 1.59
diff -u -p -r1.59 NMWirelessApplet.c
--- panel-applet/NMWirelessApplet.c	24 Jan 2005 18:46:25 -0000	1.59
+++ panel-applet/NMWirelessApplet.c	30 Jan 2005 03:38:42 -0000
@@ -1039,7 +1039,7 @@ static GtkWidget * nmwa_get_instance (NM
 
 static gboolean nmwa_fill (NMWirelessApplet *applet)
 {
-	gnome_window_icon_set_default_from_file (ICONDIR"/NMWirelessApplet/wireless-applet.png");
+	gtk_window_set_default_icon_from_file (ICONDIR"/NMWirelessApplet/wireless-applet.png", NULL);
 
 	glade_gnome_init ();
 	gtk_widget_show (nmwa_get_instance (applet));


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