summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-10-14 13:23:26 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-10-14 13:32:31 +0100
commit7ae079274d15ab309c9811c0b3966bed727a6afe (patch)
tree30d63fdbbb8160bdeab623aa5b1d930b1cc34c9c /vcl
parent1b4165b0f38ea4d51cdfe28b1c89c89f6ac80a9e (diff)
silence warnings
Change-Id: I80abf5092c7d4e7b8cf75e4b79ffdb9a5e0c7580
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx
index 3f215791518c..8fa32ab00bff 100644
--- a/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk3/gtk3salnativewidgets-gtk.cxx
@@ -726,6 +726,7 @@ Rectangle GtkSalGraphics::NWGetComboBoxButtonRect( ControlType nType,
return aButtonRect;
}
+#define FALLBACK_ARROW_SIZE 11 * 0.85
void GtkSalGraphics::PaintCombobox( GtkStateFlags flags, cairo_t *cr,
const Rectangle& rControlRectangle,
ControlType nType,
@@ -749,7 +750,7 @@ void GtkSalGraphics::PaintCombobox( GtkStateFlags flags, cairo_t *cr,
if (AllSettings::GetLayoutRTL())
aEditBoxRect.SetPos( Point( areaRect.Left() + buttonRect.GetWidth(), areaRect.Top() ) );
- gint arrow_width, arrow_height;
+ gint arrow_width = FALLBACK_ARROW_SIZE, arrow_height = FALLBACK_ARROW_SIZE;
if (nType == ControlType::Combobox)
{
gtk_style_context_get(mpComboboxButtonArrowStyle,