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)
This commit is contained in:
Matthias Clasen 2003-12-06 00:12:46 +00:00 committed by Matthias Clasen
parent 532062df96
commit 5795c83cb3
6 changed files with 27 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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)
Fri Dec 5 15:30:16 2003 Manish Singh <yosh@gimp.org> Fri Dec 5 15:30:16 2003 Manish Singh <yosh@gimp.org>
* gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from * gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from

View File

@ -1,3 +1,8 @@
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)
Fri Dec 5 15:30:16 2003 Manish Singh <yosh@gimp.org> Fri Dec 5 15:30:16 2003 Manish Singh <yosh@gimp.org>
* gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from * gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from

View File

@ -1,3 +1,8 @@
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)
Fri Dec 5 15:30:16 2003 Manish Singh <yosh@gimp.org> Fri Dec 5 15:30:16 2003 Manish Singh <yosh@gimp.org>
* gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from * gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from

View File

@ -1,3 +1,8 @@
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)
Fri Dec 5 15:30:16 2003 Manish Singh <yosh@gimp.org> Fri Dec 5 15:30:16 2003 Manish Singh <yosh@gimp.org>
* gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from * gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from

View File

@ -1,3 +1,8 @@
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)
Fri Dec 5 15:30:16 2003 Manish Singh <yosh@gimp.org> Fri Dec 5 15:30:16 2003 Manish Singh <yosh@gimp.org>
* gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from * gtk/gtkaccelgroup.c (quick_accel_find): Applied patch from

View File

@ -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); scrollbar_spacing = _gtk_scrolled_window_get_scrollbar_spacing (popup);
gdk_window_get_origin (combo->entry->window, x, y); 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, real_height = MIN (combo->entry->requisition.height,
combo->entry->allocation.height); combo->entry->allocation.height);
*y += real_height; *y += real_height;