diff options
author | Michael Meeks <michael.meeks@suse.com> | 2011-11-29 10:46:06 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2011-11-29 10:46:27 +0000 |
commit | dbc7e80af12287d9868bffd3ce18b848fcffa3f9 (patch) | |
tree | f725a80155d078b76fe48b5a9396f7df9b94c965 /vcl | |
parent | 7f88c3589849969777735ff30e35f1d164d443ce (diff) |
gtk: fix sub-menu arrows RTL issue
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx index 6dc5a9813753..2cdd032ec400 100644 --- a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx @@ -2910,6 +2910,12 @@ sal_Bool GtkSalGraphics::NWPaintGTKPopupMenu( else nShadowType = GTK_SHADOW_OUT; + GtkArrowType eArrow; + if( Application::GetSettings().GetLayoutRTL() ) + eArrow = GTK_ARROW_LEFT; + else + eArrow = GTK_ARROW_RIGHT; + gtk_paint_arrow( gWidgetData[m_nScreen].gMenuItemMenuWidget->style, gdkDrawable, nStateType, @@ -2917,7 +2923,7 @@ sal_Bool GtkSalGraphics::NWPaintGTKPopupMenu( &clipRect, gWidgetData[m_nScreen].gMenuItemMenuWidget, "menuitem", - GTK_ARROW_RIGHT, TRUE, + eArrow, TRUE, x, y, w, h); } } |