summaryrefslogtreecommitdiff
path: root/vcl/unx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-04-28 21:19:51 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-04-29 11:38:11 +0100
commitc3e965da98f73957b6e6cab0b9a80924d0553afe (patch)
tree659d453c35f6780fc8e67daf4efd8e4414ae81c8 /vcl/unx
parentf5ec1f2e457616c0d5207874a0270523ec62e178 (diff)
gtk3: implement background theme painting
Change-Id: I23d7dcb1491c480786f1aa2efcb682c5f6933c90
Diffstat (limited to 'vcl/unx')
-rw-r--r--vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
index 957cab6217c6..e462f935cc8b 100644
--- a/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
+++ b/vcl/unx/gtk3/gdi/gtk3salnativewidgets-gtk.cxx
@@ -941,6 +941,9 @@ bool GtkSalGraphics::drawNativeControl( ControlType nType, ControlPart nPart, co
if (nState & ControlState::SELECTED)
flags = (GtkStateFlags) (flags | GTK_STATE_FLAG_ACTIVE);
break;
+ case CTRL_WINDOW_BACKGROUND:
+ context = gtk_widget_get_style_context(mpWindow);
+ break;
default:
return false;
}
@@ -1543,8 +1546,8 @@ bool GtkSalGraphics::IsNativeControlSupported( ControlType nType, ControlPart nP
// break;
// case CTRL_FRAME:
-// case CTRL_WINDOW_BACKGROUND:
-// return true;
+ case CTRL_WINDOW_BACKGROUND:
+ return true;
case CTRL_TAB_ITEM:
case CTRL_TAB_HEADER: