[metacity] theme: add .solid-csd class to window-frame ...
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] theme: add .solid-csd class to window-frame ...
- Date: Sun, 5 Apr 2015 20:45:43 +0000 (UTC)
commit f8e54c7cdb323763ef776749bbd7574807eefa6c
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Sat Apr 4 18:03:23 2015 +0300
theme: add .solid-csd class to window-frame ...
... when running without compositing manager.
src/ui/theme.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/ui/theme.c b/src/ui/theme.c
index 00a1472..327b22b 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -5850,6 +5850,7 @@ meta_theme_create_style_info (GdkScreen *screen,
MetaStyleInfo *style_info;
GtkCssProvider *provider;
char *theme_name;
+ gboolean compositing_manager;
g_object_get (gtk_settings_get_for_screen (screen),
"gtk-theme-name", &theme_name,
@@ -5864,13 +5865,15 @@ meta_theme_create_style_info (GdkScreen *screen,
style_info = g_new0 (MetaStyleInfo, 1);
style_info->refcount = 1;
+ compositing_manager = meta_prefs_get_compositing_manager ();
+
style_info->styles[META_STYLE_ELEMENT_FRAME] =
create_style_context (META_TYPE_FRAMES,
NULL,
provider,
GTK_STYLE_CLASS_BACKGROUND,
"window-frame",
- "ssd",
+ compositing_manager ? "ssd" : "solid-csd",
NULL);
style_info->styles[META_STYLE_ELEMENT_TITLEBAR] =
create_style_context (GTK_TYPE_HEADER_BAR,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]