constify gtk_init_with_args()'s GOptionEntry argument

Reported by Nick Schermer in bug
https://bugzilla.gnome.org/show_bug.cgi?id=621111
This commit is contained in:
Javier Jardón 2010-06-09 19:12:27 +02:00
parent 09fe6e7d44
commit 785027751a
2 changed files with 13 additions and 13 deletions

View File

@ -821,12 +821,12 @@ gtk_get_option_group (gboolean open_default_display)
* Since: 2.6
*/
gboolean
gtk_init_with_args (int *argc,
char ***argv,
const char *parameter_string,
GOptionEntry *entries,
const char *translation_domain,
GError **error)
gtk_init_with_args (gint *argc,
gchar ***argv,
const gchar *parameter_string,
const GOptionEntry *entries,
const gchar *translation_domain,
GError **error)
{
GOptionContext *context;
GOptionGroup *gtk_group;

View File

@ -82,13 +82,13 @@ void gtk_init (int *argc,
gboolean gtk_init_check (int *argc,
char ***argv);
gboolean gtk_init_with_args (int *argc,
char ***argv,
const char *parameter_string,
GOptionEntry *entries,
const char *translation_domain,
GError **error);
gboolean gtk_init_with_args (gint *argc,
gchar ***argv,
const gchar *parameter_string,
const GOptionEntry *entries,
const gchar *translation_domain,
GError **error);
GOptionGroup *gtk_get_option_group (gboolean open_default_display);