diff options
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 || |