check button: Reverse alignments in RTL

Flip alignments for the box gadget children.
This commit is contained in:
Matthias Clasen 2016-04-28 21:29:32 -04:00
parent 2919e344ca
commit 8bf148b006

View File

@ -156,6 +156,8 @@ gtk_check_button_direction_changed (GtkWidget *widget,
gtk_box_gadget_reverse_children (GTK_BOX_GADGET (priv->gadget));
gtk_box_gadget_set_allocate_reverse (GTK_BOX_GADGET (priv->gadget),
gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL);
gtk_box_gadget_set_align_reverse (GTK_BOX_GADGET (priv->gadget),
gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL);
GTK_WIDGET_CLASS (gtk_check_button_parent_class)->direction_changed (widget, previous_direction);
}