summaryrefslogtreecommitdiff
path: root/unity-shared
diff options
authorAndrea Azzarone <azzaronea@gmail.com>2016-04-27 15:53:33 +0200
committerAndrea Azzarone <azzaronea@gmail.com>2016-04-27 15:53:33 +0200
commitae522ba205b2874da5872b028c42c76d6db67324 (patch)
tree544e19eabd44c7d6d034b3e9b02a2a8cf52327c9 /unity-shared
parent0a4c35d25e8bd36cb7a07c6beced1254b10ba78a (diff)
Fallback to "background" class in case no background is specified for title bars and top panel.
Fixes LP: #1575527 (bzr r4105.4.1)
Diffstat (limited to 'unity-shared')
-rw-r--r--unity-shared/DecorationStyle.cpp1
-rw-r--r--unity-shared/PanelStyle.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/unity-shared/DecorationStyle.cpp b/unity-shared/DecorationStyle.cpp
index 8d06cd912..ddd658483 100644
--- a/unity-shared/DecorationStyle.cpp
+++ b/unity-shared/DecorationStyle.cpp
@@ -369,6 +369,7 @@ struct Style::Impl
void AddContextClasses(Side s, WidgetState ws, GtkStyleContext* ctx = nullptr)
{
ctx = ctx ? ctx : ctx_;
+ gtk_style_context_add_class(ctx, "background");
gtk_style_context_add_class(ctx, "gnome-panel-menu-bar");
if (s == Side::TOP) { gtk_style_context_add_class(ctx, "header-bar"); }
gtk_style_context_add_class(ctx, GetBorderClass(s).c_str());
diff --git a/unity-shared/PanelStyle.cpp b/unity-shared/PanelStyle.cpp
index 6a0b92704..e2fb22d2e 100644
--- a/unity-shared/PanelStyle.cpp
+++ b/unity-shared/PanelStyle.cpp
@@ -85,6 +85,7 @@ Style::Style()
gtk_widget_path_iter_set_name(widget_path.get(), -1, PANEL_STYLE_CSS_NAME.c_str());
gtk_style_context_set_path(style_context_, widget_path.get());
+ gtk_style_context_add_class(style_context_, "background");
gtk_style_context_add_class(style_context_, "gnome-panel-menu-bar");
gtk_style_context_add_class(style_context_, "unity-panel");