==> common/ChangeLog <==
Fri Oct 24 18:22:06 2008 Søren Sandmann <sandmann@redhat.com> * capplet-util.[ch]: Add new capplet_init() function ==> default-applications/ChangeLog <== Fri Oct 24 18:22:22 2008 Søren Sandmann <sandmann@redhat.com> * gnome-da-capplet.c (main): Use new capplet_init() function svn path=/trunk/; revision=9105
This commit is contained in:
parent
0855f4bf5e
commit
2f8de6c511
5 changed files with 37 additions and 11 deletions
|
@ -867,7 +867,7 @@ main (int argc, char **argv)
|
|||
GnomeDACapplet *capplet;
|
||||
|
||||
gchar *start_page = NULL;
|
||||
GError *err = NULL;
|
||||
GOptionContext *context;
|
||||
GOptionEntry option_entries[] = {
|
||||
{ "show-page",
|
||||
'p',
|
||||
|
@ -880,17 +880,10 @@ main (int argc, char **argv)
|
|||
{ NULL }
|
||||
};
|
||||
|
||||
#ifdef ENABLE_NLS
|
||||
bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
|
||||
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
||||
textdomain (GETTEXT_PACKAGE);
|
||||
#endif
|
||||
context = g_option_context_new (_("- GNOME Default Applications"));
|
||||
g_option_context_add_main_entries (context, option_entries, GETTEXT_PACKAGE);
|
||||
|
||||
if (!gtk_init_with_args (&argc, &argv, "- GNOME Default Applications",
|
||||
option_entries, GETTEXT_PACKAGE, &err)) {
|
||||
g_printerr ("%s\n", err->message);
|
||||
return 1;
|
||||
}
|
||||
capplet_init (context, &argc, &argv);
|
||||
|
||||
glade_init ();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue