summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2014-06-11 10:59:09 +0200
committerThanatermesis <thanatermesis@gmail.com>2014-06-12 15:44:10 +0200
commitff32fd429016dfe60809ffc117d90c1afe04b9f4 (patch)
tree5496085a72443071c862540dfd986ab368761a17
parent03218976919bf51d5ba9a562ed3b73a538b95271 (diff)
efreet: remove code duplication
If the menu starts with either kde- or gnome- the resulting action is the same. (cherry picked from commit a10d4167f11074f338f9d8cf6f8f8023fc438b05) Signed-off-by: Thanatermesis <thanatermesis@gmail.com>
-rw-r--r--src/lib/efreet/efreet_menu.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/efreet/efreet_menu.c b/src/lib/efreet/efreet_menu.c
index 730f153532..40eca8119e 100644
--- a/src/lib/efreet/efreet_menu.c
+++ b/src/lib/efreet/efreet_menu.c
@@ -1558,12 +1558,8 @@ efreet_menu_handle_default_merge_dirs(Efreet_Menu_Internal *parent, Efreet_Xml *
1558 1558
1559 if (!parent || !xml) return 0; 1559 if (!parent || !xml) return 0;
1560 1560
1561 if (!strcmp(parent->file.name, "gnome-applications.menu")) 1561 if ((!strcmp(parent->file.name, "gnome-applications.menu")) ||
1562 { 1562 (!strcmp(parent->file.name, "kde-applications.menu")))
1563 p = alloca(sizeof("applications"));
1564 memcpy(p, "applications", sizeof("applications"));
1565 }
1566 else if (!strcmp(parent->file.name, "kde-applications.menu"))
1567 { 1563 {
1568 p = alloca(sizeof("applications")); 1564 p = alloca(sizeof("applications"));
1569 memcpy(p, "applications", sizeof("applications")); 1565 memcpy(p, "applications", sizeof("applications"));