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:
Søren Sandmann 2008-10-24 22:39:00 +00:00 committed by Søren Sandmann Pedersen
parent 06a74d0ef1
commit 34590d63b1
2 changed files with 8 additions and 4 deletions

View file

@ -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>
* capplet-util.c: Call g_option_context_set_translation_domain on

View file

@ -192,11 +192,10 @@ capplet_init (GOptionContext *context,
textdomain (GETTEXT_PACKAGE);
#endif
#if GLIB_CHECK_VERSION (2, 12, 0)
g_option_context_set_translation_domain (context, GETTEXT_PACKAGE);
#endif
if (context) {
#if GLIB_CHECK_VERSION (2, 12, 0)
g_option_context_set_translation_domain (context, GETTEXT_PACKAGE);
#endif
g_option_context_add_group (context, gtk_get_option_group (TRUE));
if (!g_option_context_parse (context, argc, argv, &err)) {