illogict pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=1e7801538552bf8b8e62f6f7936ccbda24855dea
commit 1e7801538552bf8b8e62f6f7936ccbda24855dea Author: Chidambar Zinnoury <chidambar.zinno...@zefla.fr> Date: Sat Jul 23 12:24:49 2016 +0200 e fm: Add a separator only if there is something before. Currently, the context menu will show a separator before the background and overlay items even if there is nothing before, such as on the favourites pane. @fix --- src/bin/e_fm.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/bin/e_fm.c b/src/bin/e_fm.c index 662eab4..88f2287 100644 --- a/src/bin/e_fm.c +++ b/src/bin/e_fm.c @@ -10032,8 +10032,12 @@ _e_fm2_view_menu_pre(void *data, E_Menu *subm) if (_e_fm2_desktop_open(sd) < 0) return; e_object_data_set(E_OBJECT(subm), sd); e_object_del_attach_func_set(E_OBJECT(subm), _e_fm2_view_menu_del); - mi = e_menu_item_new(subm); - e_menu_item_separator_set(mi, 1); + + if (e_menu_item_nth(subm, 0) != NULL) + { + mi = e_menu_item_new(subm); + e_menu_item_separator_set(mi, 1); + } mi = e_menu_item_new(subm); e_menu_item_label_set(mi, _("Set background...")); --