mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-05 16:20:10 +00:00
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:
parent
1e39565cfc
commit
b355dfeaf3
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user