Kaydet (Commit) 1054eb97 authored tarafından Caolán McNamara's avatar Caolán McNamara

provide another fallback

Change-Id: I1438986674f7b4edb015f436bcaf7f07fd61d778
üst edc7a669
...@@ -680,6 +680,8 @@ void GtkSalGraphics::PaintSpinButton(GtkStyleContext *context, ...@@ -680,6 +680,8 @@ void GtkSalGraphics::PaintSpinButton(GtkStyleContext *context,
cairo_translate(cr, rControlRectangle.Left(), rControlRectangle.Top()); cairo_translate(cr, rControlRectangle.Left(), rControlRectangle.Top());
} }
#define FALLBACK_ARROW_SIZE 11 * 0.85
Rectangle GtkSalGraphics::NWGetComboBoxButtonRect( ControlType nType, Rectangle GtkSalGraphics::NWGetComboBoxButtonRect( ControlType nType,
ControlPart nPart, ControlPart nPart,
Rectangle aAreaRect ) Rectangle aAreaRect )
...@@ -691,7 +693,7 @@ Rectangle GtkSalGraphics::NWGetComboBoxButtonRect( ControlType nType, ...@@ -691,7 +693,7 @@ Rectangle GtkSalGraphics::NWGetComboBoxButtonRect( ControlType nType,
GtkBorder padding; GtkBorder padding;
gtk_style_context_get_padding( mpButtonStyle, gtk_style_context_get_state(mpButtonStyle), &padding); gtk_style_context_get_padding( mpButtonStyle, gtk_style_context_get_state(mpButtonStyle), &padding);
gint nArrowWidth; gint nArrowWidth = FALLBACK_ARROW_SIZE;
gtk_style_context_get(mpComboboxButtonArrowStyle, gtk_style_context_get(mpComboboxButtonArrowStyle,
gtk_style_context_get_state(mpComboboxButtonArrowStyle), gtk_style_context_get_state(mpComboboxButtonArrowStyle),
"min-width", &nArrowWidth, nullptr); "min-width", &nArrowWidth, nullptr);
...@@ -726,7 +728,6 @@ Rectangle GtkSalGraphics::NWGetComboBoxButtonRect( ControlType nType, ...@@ -726,7 +728,6 @@ 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,
......
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