diff options
author | Matthias Clasen <matthiasc@src.gnome.org> | 2002-11-02 00:18:14 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2002-11-02 00:18:14 +0000 |
commit | 00943af834ae457e5989daf7836cda0feb007544 (patch) | |
tree | 3bc4928450fd091fed2762131187556980872772 /gtk/gtkradiomenuitem.c | |
parent | ca00536f34bfbb895b8b5e01b1faf9c1c60545bf (diff) | |
download | gtk+-00943af834ae457e5989daf7836cda0feb007544.tar.gz |
Automatic RTL flipping for some more widgets.
Diffstat (limited to 'gtk/gtkradiomenuitem.c')
-rw-r--r-- | gtk/gtkradiomenuitem.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gtk/gtkradiomenuitem.c b/gtk/gtkradiomenuitem.c index 99834a746b..410984f19b 100644 --- a/gtk/gtkradiomenuitem.c +++ b/gtk/gtkradiomenuitem.c @@ -306,6 +306,7 @@ gtk_radio_menu_item_draw_indicator (GtkCheckMenuItem *check_menu_item, GtkShadowType shadow_type; gint width, height; gint x, y; + gint offset; g_return_if_fail (GTK_IS_RADIO_MENU_ITEM (check_menu_item)); @@ -315,8 +316,12 @@ gtk_radio_menu_item_draw_indicator (GtkCheckMenuItem *check_menu_item, width = 8; height = 8; - x = widget->allocation.x + (GTK_CONTAINER (check_menu_item)->border_width + - widget->style->xthickness + 2); + offset = GTK_CONTAINER (check_menu_item)->border_width + + widget->style->xthickness + 2; + if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_LTR) + x = widget->allocation.x + offset; + else + x = widget->allocation.x + widget->allocation.width - width - offset; y = widget->allocation.y + (widget->allocation.height - height) / 2; if (check_menu_item->active || |