forked from AuroraMiddleware/gtk
Call gettext_initialization before checking gtk_initialized, otherwise
2005-07-18 Matthias Clasen <mclasen@redhat.com> * gtk/gtkmain.c (gtk_parse_args, gtk_init_with_args): Call gettext_initialization before checking gtk_initialized, otherwise there are scenarios where it is not called at all. For an example, see tests/testfilechooserbutton.c. (#310323, Arkady L. Shane)
This commit is contained in:
parent
80d2565d1c
commit
b2d302ee13
@ -1,3 +1,11 @@
|
||||
2005-07-18 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkmain.c (gtk_parse_args, gtk_init_with_args): Call
|
||||
gettext_initialization before checking gtk_initialized, otherwise
|
||||
there are scenarios where it is not called at all. For an
|
||||
example, see tests/testfilechooserbutton.c. (#310323,
|
||||
Arkady L. Shane)
|
||||
|
||||
2005-07-18 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get): Be sure to remove
|
||||
|
@ -1,3 +1,11 @@
|
||||
2005-07-18 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkmain.c (gtk_parse_args, gtk_init_with_args): Call
|
||||
gettext_initialization before checking gtk_initialized, otherwise
|
||||
there are scenarios where it is not called at all. For an
|
||||
example, see tests/testfilechooserbutton.c. (#310323,
|
||||
Arkady L. Shane)
|
||||
|
||||
2005-07-18 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get): Be sure to remove
|
||||
|
@ -1,3 +1,11 @@
|
||||
2005-07-18 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkmain.c (gtk_parse_args, gtk_init_with_args): Call
|
||||
gettext_initialization before checking gtk_initialized, otherwise
|
||||
there are scenarios where it is not called at all. For an
|
||||
example, see tests/testfilechooserbutton.c. (#310323,
|
||||
Arkady L. Shane)
|
||||
|
||||
2005-07-18 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* gdk/win32/gdkgc-win32.c (gdk_win32_hdc_get): Be sure to remove
|
||||
|
@ -616,14 +616,14 @@ gtk_init_with_args (int *argc,
|
||||
GOptionGroup *gtk_group;
|
||||
gboolean retval;
|
||||
|
||||
gettext_initialization ();
|
||||
|
||||
if (gtk_initialized)
|
||||
return TRUE;
|
||||
|
||||
if (!check_setugid ())
|
||||
return FALSE;
|
||||
|
||||
gettext_initialization ();
|
||||
|
||||
gtk_group = gtk_get_option_group (TRUE);
|
||||
|
||||
context = g_option_context_new (parameter_string);
|
||||
@ -663,14 +663,14 @@ gtk_parse_args (int *argc,
|
||||
GOptionContext *option_context;
|
||||
GOptionGroup *gtk_group;
|
||||
|
||||
gettext_initialization ();
|
||||
|
||||
if (gtk_initialized)
|
||||
return TRUE;
|
||||
|
||||
if (!check_setugid ())
|
||||
return FALSE;
|
||||
|
||||
gettext_initialization ();
|
||||
|
||||
option_context = g_option_context_new (NULL);
|
||||
g_option_context_set_ignore_unknown_options (option_context, TRUE);
|
||||
g_option_context_set_help_enabled (option_context, FALSE);
|
||||
|
Loading…
Reference in New Issue
Block a user