diff options
author | Matthias Clasen <mclasen@redhat.com> | 2004-11-08 18:37:29 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2004-11-08 18:37:29 +0000 |
commit | a7f30bb3338524ebb6041a03d0134276ea429e3d (patch) | |
tree | d819d2be0e55d2a83893fa263afed4f93e73c975 | |
parent | 48afbb90e0b72d18b1be1617efccee0782e08d51 (diff) | |
download | gtk+-a7f30bb3338524ebb6041a03d0134276ea429e3d.tar.gz |
Change the return types of the gchar ** getters to be more const correct.
2004-11-08 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkaboutdialog.[hc]: Change the return types of the
gchar ** getters to be more const correct. (#157566, Mariano
Suárez-Alvarez)
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ChangeLog.pre-2-10 | 4 | ||||
-rw-r--r-- | ChangeLog.pre-2-6 | 4 | ||||
-rw-r--r-- | ChangeLog.pre-2-8 | 4 | ||||
-rw-r--r-- | gtk/gtkaboutdialog.c | 30 | ||||
-rw-r--r-- | gtk/gtkaboutdialog.h | 12 |
6 files changed, 37 insertions, 21 deletions
@@ -1,5 +1,9 @@ 2004-11-08 Matthias Clasen <mclasen@redhat.com> + * gtk/gtkaboutdialog.[hc]: Change the return types of the + gchar ** getters to be more const correct. (#157566, Mariano + Suárez-Alvarez) + * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_init): Add uri targets before text targets, to make file dnd work better. (#157651, Christian Persch) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 74ddb3842b..3d97f9cc12 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,9 @@ 2004-11-08 Matthias Clasen <mclasen@redhat.com> + * gtk/gtkaboutdialog.[hc]: Change the return types of the + gchar ** getters to be more const correct. (#157566, Mariano + Suárez-Alvarez) + * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_init): Add uri targets before text targets, to make file dnd work better. (#157651, Christian Persch) diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 74ddb3842b..3d97f9cc12 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,5 +1,9 @@ 2004-11-08 Matthias Clasen <mclasen@redhat.com> + * gtk/gtkaboutdialog.[hc]: Change the return types of the + gchar ** getters to be more const correct. (#157566, Mariano + Suárez-Alvarez) + * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_init): Add uri targets before text targets, to make file dnd work better. (#157651, Christian Persch) diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 74ddb3842b..3d97f9cc12 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,9 @@ 2004-11-08 Matthias Clasen <mclasen@redhat.com> + * gtk/gtkaboutdialog.[hc]: Change the return types of the + gchar ** getters to be more const correct. (#157566, Mariano + Suárez-Alvarez) + * gtk/gtkfilechooserbutton.c (gtk_file_chooser_button_init): Add uri targets before text targets, to make file dnd work better. (#157651, Christian Persch) diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c index 49168f27bd..769f190b62 100644 --- a/gtk/gtkaboutdialog.c +++ b/gtk/gtkaboutdialog.c @@ -560,13 +560,13 @@ gtk_about_dialog_set_property (GObject *object, gtk_about_dialog_set_logo (about, g_value_get_object (value)); break; case PROP_AUTHORS: - gtk_about_dialog_set_authors (about, (gchar**)g_value_get_boxed (value)); + gtk_about_dialog_set_authors (about, (const gchar**)g_value_get_boxed (value)); break; case PROP_DOCUMENTERS: - gtk_about_dialog_set_documenters (about, (gchar**)g_value_get_boxed (value)); + gtk_about_dialog_set_documenters (about, (const gchar**)g_value_get_boxed (value)); break; case PROP_ARTISTS: - gtk_about_dialog_set_artists (about, (gchar**)g_value_get_boxed (value)); + gtk_about_dialog_set_artists (about, (const gchar**)g_value_get_boxed (value)); break; case PROP_TRANSLATOR_CREDITS: gtk_about_dialog_set_translator_credits (about, g_value_get_string (value)); @@ -1114,7 +1114,7 @@ gtk_about_dialog_set_website_label (GtkAboutDialog *about, * * Since: 2.6 **/ -gchar ** +G_CONST_RETURN gchar * G_CONST_RETURN * gtk_about_dialog_get_authors (GtkAboutDialog *about) { GtkAboutDialogPrivate *priv; @@ -1123,7 +1123,7 @@ gtk_about_dialog_get_authors (GtkAboutDialog *about) priv = (GtkAboutDialogPrivate *)about->private_data; - return priv->authors; + return (const gchar * const *) priv->authors; } /** @@ -1138,7 +1138,7 @@ gtk_about_dialog_get_authors (GtkAboutDialog *about) **/ void gtk_about_dialog_set_authors (GtkAboutDialog *about, - gchar **authors) + const gchar **authors) { GtkAboutDialogPrivate *priv; gchar **tmp; @@ -1148,7 +1148,7 @@ gtk_about_dialog_set_authors (GtkAboutDialog *about, priv = (GtkAboutDialogPrivate *)about->private_data; tmp = priv->authors; - priv->authors = g_strdupv (authors); + priv->authors = g_strdupv ((gchar **)authors); g_strfreev (tmp); if (priv->authors != NULL) @@ -1170,7 +1170,7 @@ gtk_about_dialog_set_authors (GtkAboutDialog *about, * * Since: 2.6 **/ -gchar ** +G_CONST_RETURN gchar * G_CONST_RETURN * gtk_about_dialog_get_documenters (GtkAboutDialog *about) { GtkAboutDialogPrivate *priv; @@ -1179,7 +1179,7 @@ gtk_about_dialog_get_documenters (GtkAboutDialog *about) priv = (GtkAboutDialogPrivate *)about->private_data; - return priv->documenters; + return (const gchar * const *)priv->documenters; } /** @@ -1194,7 +1194,7 @@ gtk_about_dialog_get_documenters (GtkAboutDialog *about) **/ void gtk_about_dialog_set_documenters (GtkAboutDialog *about, - gchar **documenters) + const gchar **documenters) { GtkAboutDialogPrivate *priv; gchar **tmp; @@ -1204,7 +1204,7 @@ gtk_about_dialog_set_documenters (GtkAboutDialog *about, priv = (GtkAboutDialogPrivate *)about->private_data; tmp = priv->documenters; - priv->documenters = g_strdupv (documenters); + priv->documenters = g_strdupv ((gchar **)documenters); g_strfreev (tmp); if (priv->documenters != NULL) @@ -1226,7 +1226,7 @@ gtk_about_dialog_set_documenters (GtkAboutDialog *about, * * Since: 2.6 **/ -gchar ** +G_CONST_RETURN gchar * G_CONST_RETURN * gtk_about_dialog_get_artists (GtkAboutDialog *about) { GtkAboutDialogPrivate *priv; @@ -1235,7 +1235,7 @@ gtk_about_dialog_get_artists (GtkAboutDialog *about) priv = (GtkAboutDialogPrivate *)about->private_data; - return priv->artists; + return (const gchar * const *)priv->artists; } /** @@ -1250,7 +1250,7 @@ gtk_about_dialog_get_artists (GtkAboutDialog *about) **/ void gtk_about_dialog_set_artists (GtkAboutDialog *about, - gchar **artists) + const gchar **artists) { GtkAboutDialogPrivate *priv; gchar **tmp; @@ -1260,7 +1260,7 @@ gtk_about_dialog_set_artists (GtkAboutDialog *about, priv = (GtkAboutDialogPrivate *)about->private_data; tmp = priv->artists; - priv->artists = g_strdupv (artists); + priv->artists = g_strdupv ((gchar **)artists); g_strfreev (tmp); if (priv->artists != NULL) diff --git a/gtk/gtkaboutdialog.h b/gtk/gtkaboutdialog.h index 0e50750804..e802d8dcc2 100644 --- a/gtk/gtkaboutdialog.h +++ b/gtk/gtkaboutdialog.h @@ -85,15 +85,15 @@ void gtk_about_dialog_set_website (GtkAboutDialog G_CONST_RETURN gchar *gtk_about_dialog_get_website_label (GtkAboutDialog *about); void gtk_about_dialog_set_website_label (GtkAboutDialog *about, const gchar *website_label); -gchar **gtk_about_dialog_get_authors (GtkAboutDialog *about); +G_CONST_RETURN gchar * G_CONST_RETURN * gtk_about_dialog_get_authors (GtkAboutDialog *about); void gtk_about_dialog_set_authors (GtkAboutDialog *about, - gchar **authors); -gchar **gtk_about_dialog_get_documenters (GtkAboutDialog *about); + const gchar **authors); +G_CONST_RETURN gchar * G_CONST_RETURN * gtk_about_dialog_get_documenters (GtkAboutDialog *about); void gtk_about_dialog_set_documenters (GtkAboutDialog *about, - gchar **documenters); -gchar ** gtk_about_dialog_get_artists (GtkAboutDialog *about); + const gchar **documenters); +G_CONST_RETURN gchar * G_CONST_RETURN * gtk_about_dialog_get_artists (GtkAboutDialog *about); void gtk_about_dialog_set_artists (GtkAboutDialog *about, - gchar **artists); + const gchar **artists); G_CONST_RETURN gchar *gtk_about_dialog_get_translator_credits (GtkAboutDialog *about); void gtk_about_dialog_set_translator_credits (GtkAboutDialog *about, const gchar *translator_credits); |