Kaydet (Commit) 7ae07927 authored tarafından Caolán McNamara's avatar Caolán McNamara

silence warnings

Change-Id: I80abf5092c7d4e7b8cf75e4b79ffdb9a5e0c7580
üst 1b4165b0
...@@ -726,6 +726,7 @@ Rectangle GtkSalGraphics::NWGetComboBoxButtonRect( ControlType nType, ...@@ -726,6 +726,7 @@ Rectangle GtkSalGraphics::NWGetComboBoxButtonRect( ControlType nType,
return aButtonRect; return aButtonRect;
} }
#define FALLBACK_ARROW_SIZE 11 * 0.85
void GtkSalGraphics::PaintCombobox( GtkStateFlags flags, cairo_t *cr, void GtkSalGraphics::PaintCombobox( GtkStateFlags flags, cairo_t *cr,
const Rectangle& rControlRectangle, const Rectangle& rControlRectangle,
ControlType nType, ControlType nType,
...@@ -749,7 +750,7 @@ void GtkSalGraphics::PaintCombobox( GtkStateFlags flags, cairo_t *cr, ...@@ -749,7 +750,7 @@ void GtkSalGraphics::PaintCombobox( GtkStateFlags flags, cairo_t *cr,
if (AllSettings::GetLayoutRTL()) if (AllSettings::GetLayoutRTL())
aEditBoxRect.SetPos( Point( areaRect.Left() + buttonRect.GetWidth(), areaRect.Top() ) ); 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) if (nType == ControlType::Combobox)
{ {
gtk_style_context_get(mpComboboxButtonArrowStyle, gtk_style_context_get(mpComboboxButtonArrowStyle,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment