diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2021-12-31 13:25:45 +0000 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2021-12-31 13:25:45 +0000 |
commit | 0603300828fcaeb2f832cf579726526319a9f9b3 (patch) | |
tree | 738cb911a60a3f5e23d9563a16a2258e50480822 | |
parent | ba156d2f464e5cc0ff728b6dbde3f5ed76cda717 (diff) | |
download | enlightenment-0603300828fcaeb2f832cf579726526319a9f9b3.tar.gz |
e - border list - fix list to filter volume out
the volume style is not a border but the gadget - a mistake made long
ago when this was added. cant change now due to theme compat to filter
out in code
@fix
-rw-r--r-- | src/bin/e_theme.c | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/bin/e_theme.c b/src/bin/e_theme.c index 0d8bf85f52..7e5494db8c 100644 --- a/src/bin/e_theme.c +++ b/src/bin/e_theme.c @@ -134,7 +134,23 @@ e_theme_border_find(const char *border) E_API Eina_List * e_theme_border_list(void) { - return e_theme_collection_items_find(NULL, "e/widgets/border"); + Eina_List *list, *l; + const char *s; + + list = e_theme_collection_items_find(NULL, "e/widgets/border"); + // XXX: a horrible hack due to history and bad group naming choices + // but filter out volume as a border because it is the volume gadget + // thing not a border + EINA_LIST_FOREACH(list, l, s) + { + if (!strcmp(s, "volume")) + { + list = eina_list_remove_list(list, l); + eina_stringshare_del(s); + break; + } + } + return list; } E_API int |