[gtk+] constify gtk_init_with_args()'s GOptionEntry argument
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] constify gtk_init_with_args()'s GOptionEntry argument
- Date: Thu, 10 Jun 2010 02:06:21 +0000 (UTC)
commit 785027751aaa0405342dcda0337dbd73d96a5d35
Author: Javier Jardón <jjardon gnome org>
Date: Wed Jun 9 19:12:27 2010 +0200
constify gtk_init_with_args()'s GOptionEntry argument
Reported by Nick Schermer in bug
https://bugzilla.gnome.org/show_bug.cgi?id=621111
gtk/gtkmain.c | 12 ++++++------
gtk/gtkmain.h | 14 +++++++-------
2 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index 0ab2b53..c8c769f 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -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;
diff --git a/gtk/gtkmain.h b/gtk/gtkmain.h
index 9b4c686..fe4ff99 100644
--- a/gtk/gtkmain.h
+++ b/gtk/gtkmain.h
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]