account for RTL code.

Tue Feb 25 21:55:17 2003  Jonathan Blandford  <jrb@redhat.com>

	* gtk/gtkoptionmenu.c (gtk_option_menu_position): account for RTL
	code.
This commit is contained in:
Jonathan Blandford 2003-02-26 19:36:34 +00:00 committed by Jonathan Blandford
parent 1e39565cfc
commit b355dfeaf3
6 changed files with 29 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Tue Feb 25 21:55:17 2003 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkoptionmenu.c (gtk_option_menu_position): account for RTL
code.
2003-02-24 Sven Neumann <sven@gimp.org>
* gtk/gtkmain.c (gtk_get_default_language): fixed documentation.

View File

@ -1,3 +1,8 @@
Tue Feb 25 21:55:17 2003 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkoptionmenu.c (gtk_option_menu_position): account for RTL
code.
2003-02-24 Sven Neumann <sven@gimp.org>
* gtk/gtkmain.c (gtk_get_default_language): fixed documentation.

View File

@ -1,3 +1,8 @@
Tue Feb 25 21:55:17 2003 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkoptionmenu.c (gtk_option_menu_position): account for RTL
code.
2003-02-24 Sven Neumann <sven@gimp.org>
* gtk/gtkmain.c (gtk_get_default_language): fixed documentation.

View File

@ -1,3 +1,8 @@
Tue Feb 25 21:55:17 2003 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkoptionmenu.c (gtk_option_menu_position): account for RTL
code.
2003-02-24 Sven Neumann <sven@gimp.org>
* gtk/gtkmain.c (gtk_get_default_language): fixed documentation.

View File

@ -1,3 +1,8 @@
Tue Feb 25 21:55:17 2003 Jonathan Blandford <jrb@redhat.com>
* gtk/gtkoptionmenu.c (gtk_option_menu_position): account for RTL
code.
2003-02-24 Sven Neumann <sven@gimp.org>
* gtk/gtkmain.c (gtk_get_default_language): fixed documentation.

View File

@ -952,6 +952,10 @@ gtk_option_menu_position (GtkMenu *menu,
children = children->next;
}
if (gtk_widget_get_direction (widget) == GTK_TEXT_DIR_RTL)
menu_xpos = menu_xpos + widget->allocation.width - menu_width;
/* Clamp the position on screen */
screen_width = gdk_screen_get_width (gtk_widget_get_screen (widget));
if (menu_xpos < 0)