Commit c12dd8f0 authored by Ingo Brückl's avatar Ingo Brückl Committed by Daniel Boles

Set translation domain for parameter_string in gtk_init_with_args

This was requested in bug 554926.

Backport of original commit e3bd926c by
Gabor Kelemen, kelemeng at gnome dot hu, applied to GTK+ 2.90.5 on Tue,
10 Aug 2010 04:13:22 +0000 (UTC).

https://bugzilla.gnome.org/show_bug.cgi?id=785165
parent d57d105e
......@@ -876,7 +876,7 @@ gtk_get_option_group (gboolean open_default_display)
* of #GOptionEntry<!-- -->s describing the options of your program
* @translation_domain: a translation domain to use for translating
* the <option>--help</option> output for the options in @entries
* with gettext(), or %NULL
* and the @parameter_string with gettext(), or %NULL
* @error: a return location for errors
*
* This function does the same work as gtk_init_check().
......@@ -915,6 +915,8 @@ gtk_init_with_args (int *argc,
context = g_option_context_new (parameter_string);
g_option_context_add_group (context, gtk_group);
g_option_context_set_translation_domain (context, translation_domain);
if (entries)
g_option_context_add_main_entries (context, entries, translation_domain);
retval = g_option_context_parse (context, argc, argv, error);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment