diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-04-28 20:56:51 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-04-28 20:56:51 +0100 |
commit | e0dea29e27c18698af65386db0a7e3b5b140c3dc (patch) | |
tree | d6efd3909bb50dca8d1a8957291ecfef15cccd03 /vcl | |
parent | a0c8b9c502be6df8ba853f3e8c0d4e45bb2785b2 (diff) |
gtk3: render the frames, looking more like the real thing now
Change-Id: I8e0f708fcdcbf8a3cfa2df381908dcf7e91ab8ef
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx index aad0ca567782..957cab6217c6 100644 --- a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx +++ b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx @@ -960,6 +960,10 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co { gtk_style_context_add_class(context, styleClass); } + if (nType == CTRL_TAB_HEADER || nType == CTRL_TAB_PANE) + { + gtk_style_context_add_class(context, GTK_STYLE_CLASS_FRAME); + } switch(renderType) { @@ -1150,7 +1154,6 @@ bool GtkSalGraphics::getNativeControlRegion( ControlType nType, ControlPart nPar gtk_style_context_add_region(mpNoteBookStyle, GTK_STYLE_REGION_TAB, GTK_REGION_ONLY); gtk_style_context_add_class(mpNoteBookStyle, GTK_STYLE_CLASS_TOP); - aEditRect = AdjustRectForTextBordersPadding(mpSpinStyle, rValue.getNumericVal(), rControlRegion); gtk_style_context_restore(mpNoteBookStyle); |