diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-08-25 14:18:57 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-08-25 14:31:20 +0400 |
commit | 2da4a011130cefa3bd56e5b62c9068d202e81913 (patch) | |
tree | f762cb8272a5536864b16fe68fe1d97d10b32e50 /vcl | |
parent | a2c5a1174ef964f3993f49162b4d8d14b8f02c46 (diff) |
gtk: wrong menu border size, need to add thickness
Change-Id: Ibcd63b7a74f6a6afb0ac1195218125fea26a0482
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx index f204c03beaba..f28cb0a312d4 100644 --- a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx @@ -446,8 +446,10 @@ void GtkData::initNWF( void ) gtk_widget_style_get( gWidgetData[0].gMenuWidget, "vertical-padding", &vertical_padding, (char *)NULL); - pSVData->maNWFData.mnMenuFormatBorderX = horizontal_padding; - pSVData->maNWFData.mnMenuFormatBorderY = vertical_padding; + gint xthickness = gWidgetData[0].gMenuWidget->style->xthickness; + gint ythickness = gWidgetData[0].gMenuWidget->style->ythickness; + pSVData->maNWFData.mnMenuFormatBorderX = xthickness + horizontal_padding; + pSVData->maNWFData.mnMenuFormatBorderY = ythickness + vertical_padding; if( SalGetDesktopEnvironment() == "KDE" ) { |