diff options
author | Juan Pablo Ugarte <juanpablougarte@gmail.com> | 2022-04-21 15:05:08 -0300 |
---|---|---|
committer | Juan Pablo Ugarte <juanpablougarte@gmail.com> | 2022-08-10 16:24:25 -0400 |
commit | 3f3b6bb4562dbefaa7e804c83860bd799ccc7559 (patch) | |
tree | fbf8a3366d225478f85694473861148e9e08c5b7 | |
parent | 690e264da43446342571d77a712446a9081bdd63 (diff) | |
download | glade-3f3b6bb4562dbefaa7e804c83860bd799ccc7559.tar.gz |
Tests: fix regression in toplevel-order
-rw-r--r-- | plugins/gtk+/glade-gtk-button.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/gtk+/glade-gtk-button.c b/plugins/gtk+/glade-gtk-button.c index a6d9208c..4410eab0 100644 --- a/plugins/gtk+/glade-gtk-button.c +++ b/plugins/gtk+/glade-gtk-button.c @@ -258,7 +258,8 @@ glade_gtk_button_set_property (GladeWidgetAdaptor *adaptor, /* if draw-indicator is set, force it to be set again so GtkCheckButton/GtkToggleButton has * an opportunity to reset xalign to 0 */ - glade_gtk_sync_draw_indicator(widget); + if (GTK_IS_TOGGLE_BUTTON(object)) + glade_gtk_sync_draw_indicator(widget); } else if (GLADE_PROPERTY_DEF_VERSION_CHECK (glade_property_get_def (property), gtk_major_version, gtk_minor_version + 1)) GLADE_WIDGET_ADAPTOR_GET_ADAPTOR_CLASS (GTK_TYPE_CONTAINER)->set_property (adaptor, object, id, value); |