aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2018-02-27 18:32:59 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2018-02-28 16:02:39 -0500
commit0b6aade84db1e15b51daeb4e2584ed3b7df8bc86 (patch)
tree90903d5179e115783ca842519c08dd3a6a63e0e7
parenttheme: rename "default" theme to "dark" (diff)
downloadefl-0b6aade84db1e15b51daeb4e2584ed3b7df8bc86.tar.gz
elm config: hide theme and profile config in gui when running in enlightenment
put some small effort into preventing the user from destroying their config
-rw-r--r--src/bin/elementary/config.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/bin/elementary/config.c b/src/bin/elementary/config.c
index a57410a311..35ed721694 100644
--- a/src/bin/elementary/config.c
+++ b/src/bin/elementary/config.c
@@ -4203,16 +4203,18 @@ _status_config_full(Evas_Object *win,
tb_it = elm_toolbar_item_append(tb, "preferences-desktop-display",
"Sizing", _cf_sizing, win);
- elm_toolbar_item_append(tb, "preferences-desktop-theme",
- "Theme", _cf_themes, win);
+ if (!eina_streq(getenv("DESKTOP"), "Enlightenment"))
+ elm_toolbar_item_append(tb, "preferences-desktop-theme",
+ "Theme", _cf_themes, win);
elm_toolbar_item_append(tb, "preferences-color",
"Icons", _cf_icons, win);
elm_toolbar_item_append(tb, "preferences-desktop-font",
"Fonts", _cf_fonts, win);
elm_toolbar_item_append(tb, "preferences-desktop-multimedia",
"Audio", _cf_audio, win);
- elm_toolbar_item_append(tb, "preferences-profile",
- "Profiles", _cf_profiles, win);
+ if (!eina_streq(getenv("DESKTOP"), "Enlightenment"))
+ elm_toolbar_item_append(tb, "preferences-profile",
+ "Profiles", _cf_profiles, win);
elm_toolbar_item_append(tb, NULL, "Scrolling", _cf_scrolling, win);
elm_toolbar_item_append(tb, NULL, "Rendering", _cf_rendering, win);
elm_toolbar_item_append(tb, NULL, "Caches", _cf_caches, win);