gnome-control-center r9097 - trunk/capplets/network



Author: ssp
Date: Fri Oct 24 20:59:58 2008
New Revision: 9097
URL: http://svn.gnome.org/viewvc/gnome-control-center?rev=9097&view=rev

Log:
Fri Oct 24 16:58:35 2008  S%GÃÂÂ% ren Sandmann  <sandmann redhat com>

	* gnome-network-preferences.c: Use gtk_init() instead of
	gnome_program_init().



Modified:
   trunk/capplets/network/ChangeLog
   trunk/capplets/network/gnome-network-preferences.c

Modified: trunk/capplets/network/gnome-network-preferences.c
==============================================================================
--- trunk/capplets/network/gnome-network-preferences.c	(original)
+++ trunk/capplets/network/gnome-network-preferences.c	Fri Oct 24 20:59:58 2008
@@ -25,9 +25,9 @@
 #endif
 
 #include <string.h>
-#include <libgnome/libgnome.h>
 #include <gconf/gconf-client.h>
 #include <glade/glade.h>
+#include <glib/gi18n.h>
 
 #include "capplet-util.h"
 #include "gconf-property-editor.h"
@@ -553,7 +553,6 @@
 int
 main (int argc, char **argv)
 {
-	GnomeProgram *program;
 	GladeXML    *dialog;
 	GConfClient *client;
 	GtkWidget   *widget;
@@ -562,9 +561,7 @@
 	bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
 	textdomain (GETTEXT_PACKAGE);
 
-	program = gnome_program_init ("gnome-network-preferences",
-				      VERSION, LIBGNOMEUI_MODULE,
-				      argc, argv, GNOME_PARAM_NONE);
+	gtk_init (&argc, &argv);
 
 	client = gconf_client_get_default ();
 	gconf_client_add_dir (client, "/system/http_proxy",
@@ -583,7 +580,6 @@
 
 	g_object_unref (dialog);
 	g_object_unref (client);
-	g_object_unref (program);
 
 	return 0;
 }



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