diff options
author | Matthias Clasen <maclas@gmx.de> | 2003-12-06 00:12:46 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2003-12-06 00:12:46 +0000 |
commit | 5795c83cb36394d6cec773f8881375e9b398386b (patch) | |
tree | 36140374b821017394e4dfdbc0fac6a37a9a2e64 /gtk/gtkcombo.c | |
parent | 532062df96b3129ded3174d20fe71f0a007c4237 (diff) | |
download | gtk+-5795c83cb36394d6cec773f8881375e9b398386b.tar.gz |
Fix the position of the popup window when in RTL mode. (#127578)
Sat Dec 6 01:13:09 2003 Matthias Clasen <maclas@gmx.de>
* gtk/gtkcombo.c (gtk_combo_get_pos): Fix the position of the
popup window when in RTL mode. (#127578)
Diffstat (limited to 'gtk/gtkcombo.c')
-rw-r--r-- | gtk/gtkcombo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkcombo.c b/gtk/gtkcombo.c index 4c17f32fce..52744fb539 100644 --- a/gtk/gtkcombo.c +++ b/gtk/gtkcombo.c @@ -444,6 +444,8 @@ gtk_combo_get_pos (GtkCombo * combo, gint * x, gint * y, gint * height, gint * w scrollbar_spacing = _gtk_scrolled_window_get_scrollbar_spacing (popup); gdk_window_get_origin (combo->entry->window, x, y); + if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL) + *x -= widget->allocation.width - combo->entry->allocation.width; real_height = MIN (combo->entry->requisition.height, combo->entry->allocation.height); *y += real_height; |