don't initialize gettext and gtk twice
2008-11-08 Jens Granseuer <jensgr@gmx.net> * appearance-main.c: (init_appearance_data), (main): don't initialize gettext and gtk twice svn path=/trunk/; revision=9136
This commit is contained in:
parent
d7d5f8d5b9
commit
f67e103d19
2 changed files with 18 additions and 17 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2008-11-08 Jens Granseuer <jensgr@gmx.net>
|
||||||
|
|
||||||
|
* appearance-main.c: (init_appearance_data), (main): don't
|
||||||
|
initialize gettext and gtk twice
|
||||||
|
|
||||||
==================== 2.25.1 ====================
|
==================== 2.25.1 ====================
|
||||||
|
|
||||||
Sat Oct 25 23:11:58 2008 Søren Sandmann <sandmann@redhat.com>
|
Sat Oct 25 23:11:58 2008 Søren Sandmann <sandmann@redhat.com>
|
||||||
|
|
|
@ -31,19 +31,15 @@
|
||||||
#include "capplet-util.h"
|
#include "capplet-util.h"
|
||||||
|
|
||||||
static AppearanceData *
|
static AppearanceData *
|
||||||
init_appearance_data (int *argc, char ***argv)
|
init_appearance_data (int *argc, char ***argv, GOptionContext *context)
|
||||||
{
|
{
|
||||||
AppearanceData *data = NULL;
|
AppearanceData *data = NULL;
|
||||||
gchar *gladefile;
|
gchar *gladefile;
|
||||||
GladeXML *ui;
|
GladeXML *ui;
|
||||||
|
|
||||||
bindtextdomain (GETTEXT_PACKAGE, GNOMELOCALEDIR);
|
|
||||||
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
|
|
||||||
textdomain (GETTEXT_PACKAGE);
|
|
||||||
|
|
||||||
g_thread_init (NULL);
|
g_thread_init (NULL);
|
||||||
theme_thumbnail_factory_init (*argc, *argv);
|
theme_thumbnail_factory_init (*argc, *argv);
|
||||||
gtk_init (argc, argv);
|
capplet_init (argc, argv);
|
||||||
activate_settings_daemon ();
|
activate_settings_daemon ();
|
||||||
|
|
||||||
/* set up the data */
|
/* set up the data */
|
||||||
|
@ -145,15 +141,13 @@ main (int argc, char **argv)
|
||||||
{ NULL }
|
{ NULL }
|
||||||
};
|
};
|
||||||
|
|
||||||
/* init */
|
|
||||||
data = init_appearance_data (&argc, &argv);
|
|
||||||
if (!data)
|
|
||||||
return 1;
|
|
||||||
|
|
||||||
option_context = g_option_context_new (NULL);
|
option_context = g_option_context_new (NULL);
|
||||||
g_option_context_add_main_entries (option_context, option_entries, GETTEXT_PACKAGE);
|
g_option_context_add_main_entries (option_context, option_entries, GETTEXT_PACKAGE);
|
||||||
|
|
||||||
capplet_init (option_context, &argc, &argv);
|
/* init */
|
||||||
|
data = init_appearance_data (&argc, &argv, option_context);
|
||||||
|
if (!data)
|
||||||
|
return 1;
|
||||||
|
|
||||||
if (install_filename != NULL) {
|
if (install_filename != NULL) {
|
||||||
GFile *inst = g_file_new_for_commandline_arg (install_filename);
|
GFile *inst = g_file_new_for_commandline_arg (install_filename);
|
||||||
|
@ -201,6 +195,8 @@ main (int argc, char **argv)
|
||||||
g_free (page_name);
|
g_free (page_name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_option_context_free (option_context);
|
||||||
|
|
||||||
/* start the mainloop */
|
/* start the mainloop */
|
||||||
gtk_main ();
|
gtk_main ();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue