popover-menu: Fix buttons' position in RTL
authorYosef Or Boczko <yoseforb@gmail.com>
Sat, 19 Mar 2022 22:43:57 +0000 (00:43 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Thu, 21 Apr 2022 23:14:03 +0000 (19:14 -0400)
The radio/check/previous buttons shows in
the wrong place in RTL. Fix it.

#4641

Signed-off-by: Yosef Or Boczko <yoseforb@gmail.com>
gtk/gtkmodelbutton.c

index bde7e31c1bc6aef1ad3049e646d7fe02e81b70ee..27b5fd6e3fa91e1801b714285c13ce34eaf72c69 100644 (file)
@@ -379,8 +379,8 @@ update_node_ordering (GtkModelButton *button)
         gtk_widget_insert_before (button->end_indicator, GTK_WIDGET (button), child);
 
       child = gtk_widget_get_last_child (GTK_WIDGET (button));
-      if (child != button->start_box)
-        gtk_widget_insert_after (button->start_box, GTK_WIDGET (button), child);
+      if (button->end_indicator && child != button->end_indicator)
+        gtk_widget_insert_after (button->end_indicator, GTK_WIDGET (button), child);
     }
 }