summaryrefslogtreecommitdiff
path: root/gtk/gtkaboutdialog.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-10-06 12:53:46 -0400
committerMatthias Clasen <mclasen@redhat.com>2020-10-06 12:53:46 -0400
commit44fd0c18c8b45a356e4400070b277bad320380ef (patch)
treedcbfb31034d6a8385ab041a47fd74c866c045d0b /gtk/gtkaboutdialog.c
parent22eac2f407ba3503d88d5eb58b9a31566bb7e645 (diff)
downloadgtk+-44fd0c18c8b45a356e4400070b277bad320380ef.tar.gz
aboutdialog: Fix updating license tab
We need to update the license button visibility whenever the license type changes.
Diffstat (limited to 'gtk/gtkaboutdialog.c')
-rw-r--r--gtk/gtkaboutdialog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkaboutdialog.c b/gtk/gtkaboutdialog.c
index f3304fce2c..ce5c8efb78 100644
--- a/gtk/gtkaboutdialog.c
+++ b/gtk/gtkaboutdialog.c
@@ -2378,8 +2378,6 @@ gtk_about_dialog_set_license_type (GtkAboutDialog *about,
g_free (license_string);
gtk_widget_show (about->license_label);
- update_license_button_visibility (about);
-
g_object_notify_by_pspec (G_OBJECT (about), props[PROP_WRAP_LICENSE]);
g_object_notify_by_pspec (G_OBJECT (about), props[PROP_LICENSE]);
}
@@ -2388,6 +2386,8 @@ gtk_about_dialog_set_license_type (GtkAboutDialog *about,
gtk_widget_show (about->license_label);
}
+ update_license_button_visibility (about);
+
g_object_notify_by_pspec (G_OBJECT (about), props[PROP_LICENSE_TYPE]);
g_object_thaw_notify (G_OBJECT (about));