From 9b86c72c96c97c0904615c0822c0ea6a47a9be7d Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 8 Nov 2004 19:14:23 +0000 Subject: Hide the website button if the url is unset. (#157630, John Finlay) 2004-11-08 Matthias Clasen * gtk/gtkaboutdialog.c (gtk_about_dialog_set_website): Hide the website button if the url is unset. (#157630, John Finlay) --- ChangeLog | 3 +++ ChangeLog.pre-2-10 | 3 +++ ChangeLog.pre-2-6 | 3 +++ ChangeLog.pre-2-8 | 3 +++ gtk/gtkaboutdialog.c | 1 + 5 files changed, 13 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3d97f9cc12..b2115050ec 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2004-11-08 Matthias Clasen + * gtk/gtkaboutdialog.c (gtk_about_dialog_set_website): Hide the + website button if the url is unset. (#157630, John Finlay) + * gtk/gtkaboutdialog.[hc]: Change the return types of the gchar ** getters to be more const correct. (#157566, Mariano Suárez-Alvarez) diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 3d97f9cc12..b2115050ec 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,5 +1,8 @@ 2004-11-08 Matthias Clasen + * gtk/gtkaboutdialog.c (gtk_about_dialog_set_website): Hide the + website button if the url is unset. (#157630, John Finlay) + * gtk/gtkaboutdialog.[hc]: Change the return types of the gchar ** getters to be more const correct. (#157566, Mariano Suárez-Alvarez) diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 3d97f9cc12..b2115050ec 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,5 +1,8 @@ 2004-11-08 Matthias Clasen + * gtk/gtkaboutdialog.c (gtk_about_dialog_set_website): Hide the + website button if the url is unset. (#157630, John Finlay) + * gtk/gtkaboutdialog.[hc]: Change the return types of the gchar ** getters to be more const correct. (#157566, Mariano Suárez-Alvarez) diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 3d97f9cc12..b2115050ec 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,5 +1,8 @@ 2004-11-08 Matthias Clasen + * gtk/gtkaboutdialog.c (gtk_about_dialog_set_website): Hide the + website button if the url is unset. (#157630, John Finlay) + * gtk/gtkaboutdialog.[hc]: Change the return types of the gchar ** getters to be more const correct. (#157566, Mariano Suárez-Alvarez) diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c index 769f190b62..2cdcdf29a3 100644 --- a/gtk/gtkaboutdialog.c +++ b/gtk/gtkaboutdialog.c @@ -1029,6 +1029,7 @@ gtk_about_dialog_set_website (GtkAboutDialog *about, { priv->website = NULL; g_object_set_data (G_OBJECT (priv->website_button), "url", NULL); + gtk_widget_hide (priv->website_button); } g_free (tmp); -- cgit v1.2.1