+Fri Oct 24 17:54:17 2008 Søren Sandmann <sandmann@redhat.com>

+
+	* gnome-da-capplet.c (main): Fix to use gtk_init_with_args() correctly.
+


svn path=/trunk/; revision=9103
This commit is contained in:
Søren Sandmann Pedersen 2008-10-24 21:54:30 +00:00
parent 1c2c68aa78
commit 621d9dcc44
2 changed files with 10 additions and 5 deletions

View file

@ -1,3 +1,7 @@
Fri Oct 24 17:54:17 2008 Søren Sandmann <sandmann@redhat.com>
* gnome-da-capplet.c (main): Fix to use gtk_init_with_args() correctly.
Fri Oct 24 17:31:40 2008 Søren Sandmann <sandmann@redhat.com>
* gnome-da-capplet.c (main): Replace use of gnome_program_init()

View file

@ -867,7 +867,7 @@ main (int argc, char **argv)
GnomeDACapplet *capplet;
gchar *start_page = NULL;
GOptionContext *option_context;
GError *err = NULL;
GOptionEntry option_entries[] = {
{ "show-page",
'p',
@ -886,10 +886,11 @@ main (int argc, char **argv)
textdomain (GETTEXT_PACKAGE);
#endif
option_context = g_option_context_new (NULL);
g_option_context_add_main_entries (option_context, option_entries, GETTEXT_PACKAGE);
gtk_init_with_args (&argc, &argv, NULL, option_entries, NULL, NULL);
if (!gtk_init_with_args (&argc, &argv, "- GNOME Default Applications",
option_entries, GETTEXT_PACKAGE, &err)) {
g_printerr ("%s\n", err->message);
return 1;
}
glade_init ();