gnome-control-center r9100 - trunk/capplets/default-applications



Author: ssp
Date: Fri Oct 24 21:35:00 2008
New Revision: 9100
URL: http://svn.gnome.org/viewvc/gnome-control-center?rev=9100&view=rev

Log:
+Fri Oct 24 17:31:40 2008  SÃren Sandmann  <sandmann redhat com>
+
+	* gnome-da-capplet.c (main): Replace use of gnome_program_init()
+	with gtk_init_with_args()
+



Modified:
   trunk/capplets/default-applications/ChangeLog
   trunk/capplets/default-applications/gnome-da-capplet.c

Modified: trunk/capplets/default-applications/gnome-da-capplet.c
==============================================================================
--- trunk/capplets/default-applications/gnome-da-capplet.c	(original)
+++ trunk/capplets/default-applications/gnome-da-capplet.c	Fri Oct 24 21:35:00 2008
@@ -24,8 +24,8 @@
 #endif
 
 #include <string.h>
-#include <gnome.h>
 #include <glib/gi18n.h>
+#include <stdlib.h>
 
 #include "gconf-property-editor.h"
 #include "gnome-da-capplet.h"
@@ -864,7 +864,6 @@
 int
 main (int argc, char **argv)
 {
-    GnomeProgram *program;
     GnomeDACapplet *capplet;
 
     gchar *start_page = NULL;
@@ -890,10 +889,7 @@
     option_context = g_option_context_new (NULL);
     g_option_context_add_main_entries (option_context, option_entries, GETTEXT_PACKAGE);
 
-    program = gnome_program_init ("gnome-default-applications-properties",
-    				  VERSION, LIBGNOMEUI_MODULE, argc, argv,
-    				  GNOME_PARAM_GOPTION_CONTEXT, option_context,
-				  GNOME_PARAM_NONE);
+    gtk_init_with_args (&argc, &argv, NULL, option_entries, NULL, NULL);
 
     glade_init ();
 
@@ -909,7 +905,6 @@
     g_object_unref (capplet->gconf);
 
     gnome_da_xml_free (capplet);
-    g_object_unref (program);
 
     return 0;
 }



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