[Libreoffice-commits] core.git: vcl/unx
Caolán McNamara
caolanm at redhat.com
Tue Apr 28 12:57:25 PDT 2015
vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit e0dea29e27c18698af65386db0a7e3b5b140c3dc
Author: Caolán McNamara <caolanm at redhat.com>
Date: Tue Apr 28 20:56:51 2015 +0100
gtk3: render the frames, looking more like the real thing now
Change-Id: I8e0f708fcdcbf8a3cfa2df381908dcf7e91ab8ef
diff --git a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
index aad0ca5..957cab6 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);
More information about the Libreoffice-commits
mailing list