diff options
author | Matthias Clasen <mclasen@redhat.com> | 2014-02-15 17:59:19 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2014-02-15 18:07:09 -0500 |
commit | 3c981d23dcfcfbe7895d495cb191dcf29aed9450 (patch) | |
tree | be53ca8fd32fc63023e77759c165c451007ab7b9 /gtk/gtkaboutdialog.c | |
parent | 69fed898c046ec33c522bc442e44f7034be317c0 (diff) | |
download | gtk+-3c981d23dcfcfbe7895d495cb191dcf29aed9450.tar.gz |
Don't show an empty license tab
It is not useful to show a license tab, if there's no license
to read. This was pointed out as a possibility in
https://bugzilla.gnome.org/show_bug.cgi?id=724411
Diffstat (limited to 'gtk/gtkaboutdialog.c')
-rw-r--r-- | gtk/gtkaboutdialog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c index 869ea4dd0e..82f721406e 100644 --- a/gtk/gtkaboutdialog.c +++ b/gtk/gtkaboutdialog.c @@ -667,7 +667,7 @@ update_license_button_visibility (GtkAboutDialog *about) { GtkAboutDialogPrivate *priv = about->priv; - if (priv->license_type == GTK_LICENSE_CUSTOM && priv->license != NULL) + if (priv->license_type == GTK_LICENSE_CUSTOM && priv->license != NULL && priv->license[0] != '\0') gtk_widget_show (priv->license_page); else gtk_widget_hide (priv->license_page); |