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
This commit is contained in:
Mike Blumenkrantz 2018-02-27 18:32:59 -05:00
parent d764e0b279
commit 0b6aade84d
1 changed files with 6 additions and 4 deletions

View File

@ -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);