summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-05-22 15:28:29 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-09-28 08:48:20 +0100
commit9a121accd1199156a1701b3130a2c3ed90b26caa (patch)
tree1733c4f4cae49f95ad791fa7addf4d28448aecdc /vcl/unx
parent13035875067169920d35fc5291f62c821318e1e5 (diff)
make radiobuttons a more pleasing height
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx6
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 cf84f8cd9eeb..ce14634d373a 100644
--- a/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx
@@ -1131,12 +1131,14 @@ sal_Bool GtkSalGraphics::getNativeControlRegion( ControlType nType,
NWEnsureGTKRadio( m_nXScreen );
NWEnsureGTKCheck( m_nXScreen );
GtkWidget* widget = (nType == CTRL_RADIOBUTTON) ? gWidgetData[m_nXScreen].gRadioWidget : gWidgetData[m_nXScreen].gCheckWidget;
- gint indicator_size, indicator_spacing;
+ gint indicator_size, indicator_spacing, focusPad, focusWidth;
gtk_widget_style_get( widget,
"indicator_size", &indicator_size,
"indicator_spacing", &indicator_spacing,
+ "focus-line-width", &focusWidth,
+ "focus-padding", &focusPad,
(char *)NULL);
- indicator_size += 2*indicator_spacing; // guess overpaint of theme
+ indicator_size += 2*indicator_spacing + 2*(focusWidth + focusWidth);
rNativeBoundingRegion = rControlRegion;
Rectangle aIndicatorRect( Point( 0,
(rControlRegion.GetHeight()-indicator_size)/2),