[gtk: 1/2] popover-menu: Fix buttons' position in RTL
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 1/2] popover-menu: Fix buttons' position in RTL
- Date: Wed, 23 Mar 2022 02:16:42 +0000 (UTC)
commit 33f3ab999161fa4c31351c4b62e23d604ade3119
Author: Yosef Or Boczko <yoseforb gmail com>
Date: Sun Mar 20 00:43:57 2022 +0200
popover-menu: Fix buttons' position in RTL
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 | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkmodelbutton.c b/gtk/gtkmodelbutton.c
index bde7e31c1b..27b5fd6e3f 100644
--- a/gtk/gtkmodelbutton.c
+++ b/gtk/gtkmodelbutton.c
@@ -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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]