Commit 92a68f4c authored by Nick Schermer's avatar Nick Schermer Committed by Javier Jardón

gtk_init_with_args() arguments should be const gchar*

The translation_domain argument should be const gchar * to allow compilation
with -Wwrite-strings. It only passes the argument to
g_option_context_add_main_entries() which is already const gchar*.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=583305
parent aaa45996
......@@ -849,9 +849,9 @@ gtk_get_option_group (gboolean open_default_display)
gboolean
gtk_init_with_args (int *argc,
char ***argv,
char *parameter_string,
const char *parameter_string,
GOptionEntry *entries,
char *translation_domain,
const char *translation_domain,
GError **error)
{
GOptionContext *context;
......
......@@ -99,9 +99,9 @@ gboolean gtk_init_check (int *argc,
gboolean gtk_init_with_args (int *argc,
char ***argv,
char *parameter_string,
const char *parameter_string,
GOptionEntry *entries,
char *translation_domain,
const char *translation_domain,
GError **error);
GOptionGroup *gtk_get_option_group (gboolean open_default_display);
......
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