summaryrefslogtreecommitdiff
path: root/gtk/gtkmain.c
diff options
context:
space:
mode:
authorNick Schermer <nick@xfce.org>2009-10-26 22:27:03 +0100
committerJavier Jardón <jjardon@gnome.org>2009-10-26 22:29:33 +0100
commit92a68f4cf94f7615b5f0b2d16ec3c20b3775202b (patch)
tree9d62b348a58dccbb0f6d7224b493ba427e242c36 /gtk/gtkmain.c
parentaaa45996d94c36008c2855112fab07ad45085994 (diff)
downloadgtk+-92a68f4cf94f7615b5f0b2d16ec3c20b3775202b.tar.gz
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
Diffstat (limited to 'gtk/gtkmain.c')
-rw-r--r--gtk/gtkmain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index 645da6f8f2..bfee6da93b 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -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;