[glade] Tests: fix regression in toplevel-order



commit 3f3b6bb4562dbefaa7e804c83860bd799ccc7559
Author: Juan Pablo Ugarte <juanpablougarte gmail com>
Date:   Thu Apr 21 15:05:08 2022 -0300

    Tests: fix regression in toplevel-order

 plugins/gtk+/glade-gtk-button.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]