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
This commit is contained in:
Nick Schermer 2009-10-26 22:27:03 +01:00 committed by Javier Jardón
parent aaa45996d9
commit 92a68f4cf9
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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);