[metacity/wip/gtk-theme] theme: don't add 'window-frame' and 'ssd' classes...
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity/wip/gtk-theme] theme: don't add 'window-frame' and 'ssd' classes...
- Date: Fri, 2 Jan 2015 09:41:17 +0000 (UTC)
commit 6acc037563b00418870ea5b6ab1eeaf8e4ebf766
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Fri Jan 2 11:39:34 2015 +0200
theme: don't add 'window-frame' and 'ssd' classes...
... when using metacity theme.
src/ui/theme.c | 28 ++++++++++++++++++++--------
1 files changed, 20 insertions(+), 8 deletions(-)
---
diff --git a/src/ui/theme.c b/src/ui/theme.c
index fcf094c..06f4a15 100644
--- a/src/ui/theme.c
+++ b/src/ui/theme.c
@@ -5872,14 +5872,26 @@ meta_theme_create_style_info (GdkScreen *screen,
style_info = g_new0 (MetaStyleInfo, 1);
style_info->refcount = 1;
- style_info->styles[META_STYLE_ELEMENT_FRAME] =
- create_style_context (META_TYPE_FRAMES,
- NULL,
- provider,
- GTK_STYLE_CLASS_BACKGROUND,
- "window-frame",
- "ssd",
- NULL);
+ if (meta_prefs_get_use_metacity_theme ())
+ {
+ style_info->styles[META_STYLE_ELEMENT_FRAME] =
+ create_style_context (META_TYPE_FRAMES,
+ NULL,
+ provider,
+ GTK_STYLE_CLASS_BACKGROUND,
+ NULL);
+ }
+ else
+ {
+ style_info->styles[META_STYLE_ELEMENT_FRAME] =
+ create_style_context (META_TYPE_FRAMES,
+ NULL,
+ provider,
+ GTK_STYLE_CLASS_BACKGROUND,
+ "window-frame",
+ "ssd",
+ NULL);
+ }
style_info->styles[META_STYLE_ELEMENT_TITLEBAR] =
create_style_context (GTK_TYPE_HEADER_BAR,
style_info->styles[META_STYLE_ELEMENT_FRAME],
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]