summaryrefslogtreecommitdiff
diff options
authorAndrea Azzarone <azzaronea@gmail.com>2016-05-17 02:55:35 +0000
committerCI Train Bot <ci-train-bot@canonical.com>2016-05-17 02:55:35 +0000
commite1fb045acc8fd5c8f53f0883dfec1fc5c8b0b962 (patch)
treebe3a740217e458fab45e73177459e2f5dc5b910c
parent43b25436522b5e49258f570de1cfb62b8f3ce7f9 (diff)
parentae522ba205b2874da5872b028c42c76d6db67324 (diff)
Fallback to "background" class in case no background is specified for title bars and top panel. Fixes: #1575527
Approved by: Marco Trevisan (TreviƱo), PS Jenkins bot (bzr r4112)
-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");