aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2014-06-10 13:44:58 +0200
committerThanatermesis <thanatermesis@gmail.com>2014-06-12 15:44:09 +0200
commit8096976d60998654f18ead51154908492d0ac4ac (patch)
tree742c9e6a369c024d92f3b678dbc744885990f91f
parentUpdating catalan translation (diff)
downloadefl-8096976d60998654f18ead51154908492d0ac4ac.tar.gz
efreet: Correctly handle default merge dir
When main menu file is gnome-applications.menu or kde-applications.menu, we should be using applications as base for merged dir. Part of https://phab.enlightenment.org/T1284 (cherry picked from commit ffda8635fe8d7140c28044d0affc64697f1eb550) Signed-off-by: Thanatermesis <thanatermesis@gmail.com>
-rw-r--r--src/lib/efreet/efreet_menu.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/efreet/efreet_menu.c b/src/lib/efreet/efreet_menu.c
index dd56ad6033..b0e27467da 100644
--- a/src/lib/efreet/efreet_menu.c
+++ b/src/lib/efreet/efreet_menu.c
@@ -1557,14 +1557,12 @@ efreet_menu_handle_default_merge_dirs(Efreet_Menu_Internal *parent, Efreet_Xml *
if (!parent || !xml) return 0;
- if (!strcmp(efreet_menu_prefix, "gnome-") &&
- (!strcmp(parent->file.name, "gnome-applications.menu")))
+ if (!strcmp(parent->file.name, "gnome-applications.menu"))
{
p = alloca(sizeof("applications"));
memcpy(p, "applications", sizeof("applications"));
}
- else if ((!strcmp(efreet_menu_prefix, "kde-") &&
- (!strcmp(parent->file.name, "kde-applications.menu"))))
+ else if (!strcmp(parent->file.name, "kde-applications.menu"))
{
p = alloca(sizeof("applications"));
memcpy(p, "applications", sizeof("applications"));