diff options
author | Sebastian Dransfeld <sd@tango.flipp.net> | 2014-06-11 10:59:09 +0200 |
---|---|---|
committer | Sebastian Dransfeld <sd@tango.flipp.net> | 2014-06-11 11:04:23 +0200 |
commit | a10d4167f11074f338f9d8cf6f8f8023fc438b05 (patch) | |
tree | 2f9c6cb060560572f43a4731943674183ed1680c /src/lib/efreet | |
parent | 793e2ee21e2c0ca344e2af2d6f379a6ab7e8b0b4 (diff) |
efreet: remove code duplication
If the menu starts with either kde- or gnome- the resulting action is
the same.
Diffstat (limited to 'src/lib/efreet')
-rw-r--r-- | src/lib/efreet/efreet_menu.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/efreet/efreet_menu.c b/src/lib/efreet/efreet_menu.c index bfcf72b943..f0d5bad327 100644 --- a/src/lib/efreet/efreet_menu.c +++ b/src/lib/efreet/efreet_menu.c | |||
@@ -1561,12 +1561,8 @@ efreet_menu_handle_default_merge_dirs(Efreet_Menu_Internal *parent, Efreet_Xml * | |||
1561 | 1561 | ||
1562 | if (!parent || !xml) return 0; | 1562 | if (!parent || !xml) return 0; |
1563 | 1563 | ||
1564 | if (!strcmp(parent->file.name, "gnome-applications.menu")) | 1564 | if ((!strcmp(parent->file.name, "gnome-applications.menu")) || |
1565 | { | 1565 | (!strcmp(parent->file.name, "kde-applications.menu"))) |
1566 | p = alloca(sizeof("applications")); | ||
1567 | memcpy(p, "applications", sizeof("applications")); | ||
1568 | } | ||
1569 | else if (!strcmp(parent->file.name, "kde-applications.menu")) | ||
1570 | { | 1566 | { |
1571 | p = alloca(sizeof("applications")); | 1567 | p = alloca(sizeof("applications")); |
1572 | memcpy(p, "applications", sizeof("applications")); | 1568 | memcpy(p, "applications", sizeof("applications")); |