From 62dc4cf2b2d0e7dcb33f316423cfea6df40c3754 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 25 Jul 2012 09:01:05 +0000 Subject: [PATCH] add internal config entry for current netwm theme whenever we set it SVN revision: 74375 --- src/bin/e_config.h | 1 + src/bin/e_xsettings.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/bin/e_config.h b/src/bin/e_config.h index f1c12fd2b..4d0e5148b 100644 --- a/src/bin/e_config.h +++ b/src/bin/e_config.h @@ -365,6 +365,7 @@ struct _E_Config const char *xft_hint_style; const char *xft_rgba; const char *net_theme_name; // GUI + const char *net_theme_name_detected; // not saved const char *net_icon_theme_name; // GUI const char *gtk_font_name; } xsettings; diff --git a/src/bin/e_xsettings.c b/src/bin/e_xsettings.c index c9277c45a..76458d6f1 100644 --- a/src/bin/e_xsettings.c +++ b/src/bin/e_xsettings.c @@ -169,6 +169,8 @@ _e_xsettings_string_set(const char *name, const char *value) Eina_List *l; if (!name) return; + if (name == _setting_theme_name) + e_config->xsettings.net_theme_name_detected = value; name = eina_stringshare_add(name); EINA_LIST_FOREACH(settings, l, s)