[gtk+] Update GtkAboutDialog documentation
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] Update GtkAboutDialog documentation
- Date: Mon, 20 Dec 2010 16:41:01 +0000 (UTC)
commit 335bfbc8fcf1aefb6999ca8d33b500e689e6c032
Author: Matthias Clasen <mclasen redhat com>
Date: Mon Dec 20 11:38:31 2010 -0500
Update GtkAboutDialog documentation
Also, remove some dead code, pointed out in bug 637608.
gtk/gtkaboutdialog.c | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c
index b72676d..3d2d73f 100644
--- a/gtk/gtkaboutdialog.c
+++ b/gtk/gtkaboutdialog.c
@@ -398,8 +398,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
/**
* GtkAboutDialog:website-label:
*
- * The label for the link to the website of the program. If this is not set,
- * it defaults to the URL specified in the #GtkAboutDialog:website property.
+ * The label for the link to the website of the program.
*
* Since: 2.6
*/
@@ -407,7 +406,7 @@ gtk_about_dialog_class_init (GtkAboutDialogClass *klass)
PROP_WEBSITE_LABEL,
g_param_spec_string ("website-label",
P_("Website label"),
- P_("The label for the link to the website of the program. If this is not set, it defaults to the URL"),
+ P_("The label for the link to the website of the program"),
NULL,
GTK_PARAM_READWRITE));
@@ -1001,9 +1000,7 @@ update_website (GtkAboutDialog *about)
}
else
{
- if (priv->website_url)
- gtk_label_set_text (GTK_LABEL (priv->website_label), priv->website_url);
- else if (priv->website_text)
+ if (priv->website_text)
gtk_label_set_text (GTK_LABEL (priv->website_label), priv->website_text);
else
gtk_widget_hide (priv->website_label);
@@ -1454,7 +1451,6 @@ gtk_about_dialog_get_website_label (GtkAboutDialog *about)
* @website_label: the label used for the website link
*
* Sets the label to be used for the website link.
- * It defaults to the website URL.
*
* Since: 2.6
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]