forked from AuroraMiddleware/gtk
Fix drawing of RTL optionmenus by flipping the indicator_spacing.
* gtk/gtkoptionmenu.c (gtk_option_menu_paint): Fix drawing of RTL optionmenus by flipping the indicator_spacing.
This commit is contained in:
parent
6d0cb3232e
commit
13341b031b
@ -1,3 +1,8 @@
|
|||||||
|
2002-11-08 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkoptionmenu.c (gtk_option_menu_paint): Fix drawing of RTL
|
||||||
|
optionmenus by flipping the indicator_spacing.
|
||||||
|
|
||||||
Fri Nov 8 21:15:25 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
Fri Nov 8 21:15:25 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
* tests/Makefile.am: add testmenus.c, a program to test menus when
|
* tests/Makefile.am: add testmenus.c, a program to test menus when
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2002-11-08 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkoptionmenu.c (gtk_option_menu_paint): Fix drawing of RTL
|
||||||
|
optionmenus by flipping the indicator_spacing.
|
||||||
|
|
||||||
Fri Nov 8 21:15:25 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
Fri Nov 8 21:15:25 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
* tests/Makefile.am: add testmenus.c, a program to test menus when
|
* tests/Makefile.am: add testmenus.c, a program to test menus when
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2002-11-08 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkoptionmenu.c (gtk_option_menu_paint): Fix drawing of RTL
|
||||||
|
optionmenus by flipping the indicator_spacing.
|
||||||
|
|
||||||
Fri Nov 8 21:15:25 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
Fri Nov 8 21:15:25 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
* tests/Makefile.am: add testmenus.c, a program to test menus when
|
* tests/Makefile.am: add testmenus.c, a program to test menus when
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2002-11-08 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkoptionmenu.c (gtk_option_menu_paint): Fix drawing of RTL
|
||||||
|
optionmenus by flipping the indicator_spacing.
|
||||||
|
|
||||||
Fri Nov 8 21:15:25 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
Fri Nov 8 21:15:25 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
* tests/Makefile.am: add testmenus.c, a program to test menus when
|
* tests/Makefile.am: add testmenus.c, a program to test menus when
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2002-11-08 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkoptionmenu.c (gtk_option_menu_paint): Fix drawing of RTL
|
||||||
|
optionmenus by flipping the indicator_spacing.
|
||||||
|
|
||||||
Fri Nov 8 21:15:25 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
Fri Nov 8 21:15:25 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
* tests/Makefile.am: add testmenus.c, a program to test menus when
|
* tests/Makefile.am: add testmenus.c, a program to test menus when
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
2002-11-08 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* gtk/gtkoptionmenu.c (gtk_option_menu_paint): Fix drawing of RTL
|
||||||
|
optionmenus by flipping the indicator_spacing.
|
||||||
|
|
||||||
Fri Nov 8 21:15:25 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
Fri Nov 8 21:15:25 2002 Soeren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
* tests/Makefile.am: add testmenus.c, a program to test menus when
|
* tests/Makefile.am: add testmenus.c, a program to test menus when
|
||||||
|
@ -554,7 +554,7 @@ gtk_option_menu_paint (GtkWidget *widget,
|
|||||||
button_area.width, button_area.height);
|
button_area.width, button_area.height);
|
||||||
|
|
||||||
if (gtk_widget_get_direction (GTK_WIDGET (widget)) == GTK_TEXT_DIR_RTL)
|
if (gtk_widget_get_direction (GTK_WIDGET (widget)) == GTK_TEXT_DIR_RTL)
|
||||||
tab_x = button_area.x + props.indicator_spacing.left +
|
tab_x = button_area.x + props.indicator_spacing.right +
|
||||||
widget->style->xthickness;
|
widget->style->xthickness;
|
||||||
else
|
else
|
||||||
tab_x = button_area.x + button_area.width -
|
tab_x = button_area.x + button_area.width -
|
||||||
|
Loading…
Reference in New Issue
Block a user