forked from AuroraMiddleware/gtk
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:
parent
aaa45996d9
commit
92a68f4cf9
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user