forked from enlightenment/efl
efreet: remove code duplication
If the menu starts with either kde- or gnome- the resulting action is the same.
This commit is contained in:
parent
793e2ee21e
commit
a10d4167f1
|
@ -1561,12 +1561,8 @@ efreet_menu_handle_default_merge_dirs(Efreet_Menu_Internal *parent, Efreet_Xml *
|
||||||
|
|
||||||
if (!parent || !xml) return 0;
|
if (!parent || !xml) return 0;
|
||||||
|
|
||||||
if (!strcmp(parent->file.name, "gnome-applications.menu"))
|
if ((!strcmp(parent->file.name, "gnome-applications.menu")) ||
|
||||||
{
|
(!strcmp(parent->file.name, "kde-applications.menu")))
|
||||||
p = alloca(sizeof("applications"));
|
|
||||||
memcpy(p, "applications", sizeof("applications"));
|
|
||||||
}
|
|
||||||
else if (!strcmp(parent->file.name, "kde-applications.menu"))
|
|
||||||
{
|
{
|
||||||
p = alloca(sizeof("applications"));
|
p = alloca(sizeof("applications"));
|
||||||
memcpy(p, "applications", sizeof("applications"));
|
memcpy(p, "applications", sizeof("applications"));
|
||||||
|
|
Loading…
Reference in New Issue