Only call set_translation_domain() if the context is non-NULL
Fri Oct 24 18:38:47 2008 Søren Sandmann <sandmann@redhat.com> * capplet-util.c (capplet_init): Only call set_translation_domain() if the context is non-NULL svn path=/trunk/; revision=9107
This commit is contained in:
parent
06a74d0ef1
commit
34590d63b1
2 changed files with 8 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Oct 24 18:38:47 2008 Søren Sandmann <sandmann@redhat.com>
|
||||||
|
|
||||||
|
* capplet-util.c (capplet_init): Only call
|
||||||
|
set_translation_domain() if the context is non-NULL
|
||||||
|
|
||||||
Fri Oct 24 18:29:14 2008 Søren Sandmann <sandmann@redhat.com>
|
Fri Oct 24 18:29:14 2008 Søren Sandmann <sandmann@redhat.com>
|
||||||
|
|
||||||
* capplet-util.c: Call g_option_context_set_translation_domain on
|
* capplet-util.c: Call g_option_context_set_translation_domain on
|
||||||
|
|
|
@ -192,11 +192,10 @@ capplet_init (GOptionContext *context,
|
||||||
textdomain (GETTEXT_PACKAGE);
|
textdomain (GETTEXT_PACKAGE);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (context) {
|
||||||
#if GLIB_CHECK_VERSION (2, 12, 0)
|
#if GLIB_CHECK_VERSION (2, 12, 0)
|
||||||
g_option_context_set_translation_domain (context, GETTEXT_PACKAGE);
|
g_option_context_set_translation_domain (context, GETTEXT_PACKAGE);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (context) {
|
|
||||||
g_option_context_add_group (context, gtk_get_option_group (TRUE));
|
g_option_context_add_group (context, gtk_get_option_group (TRUE));
|
||||||
|
|
||||||
if (!g_option_context_parse (context, argc, argv, &err)) {
|
if (!g_option_context_parse (context, argc, argv, &err)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue