diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-11-17 12:34:44 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-11-17 15:32:04 +0000 |
commit | 4579c43861635dda15158478404aa90151228e91 (patch) | |
tree | 3e2975405f839de8bc5762c46836145419e3382a /vcl/inc | |
parent | 972c1e9e7239ef84611b01dad5b112af8f353d3c (diff) |
gtk3: spinbuttons under Ambiance don't look beautiful enough
lets draw the frame after the sub-contents are done, and
use a dedicated entry child
Change-Id: I7db1ac56e5cfb1a46ddd2fb56c5e95deaa83a95d
Diffstat (limited to 'vcl/inc')
-rw-r--r-- | vcl/inc/unx/gtk/gtkgdi.hxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/inc/unx/gtk/gtkgdi.hxx b/vcl/inc/unx/gtk/gtkgdi.hxx index 514c71d1a9b7..e7169e95c20b 100644 --- a/vcl/inc/unx/gtk/gtkgdi.hxx +++ b/vcl/inc/unx/gtk/gtkgdi.hxx @@ -53,6 +53,7 @@ enum class GtkControlPart ListboxBoxButtonBox, ListboxBoxButtonBoxArrow, SpinButton, + SpinButtonEntry, SpinButtonUpButton, SpinButtonDownButton, ScrollbarVertical, @@ -151,6 +152,7 @@ private: static GtkStyleContext *mpRadioButtonStyle; static GtkStyleContext *mpRadioButtonRadioStyle; static GtkStyleContext *mpSpinStyle; + static GtkStyleContext *mpSpinEntryStyle; static GtkStyleContext *mpSpinUpStyle; static GtkStyleContext *mpSpinDownStyle; static GtkStyleContext *mpComboboxStyle; @@ -210,7 +212,7 @@ private: ControlPart nPart, Rectangle aAreaRect, ControlState nState ); - void PaintSpinButton(GtkStyleContext *context, + void PaintSpinButton(GtkStateFlags flags, cairo_t *cr, const Rectangle& rControlRectangle, ControlType nType, |