ajwillia-ms pushed a commit to branch master.

http://git.enlightenment.org/tools/edi.git/commit/?id=ef18a26ddc1a00beb1b512abb85f43b14e38ae64

commit ef18a26ddc1a00beb1b512abb85f43b14e38ae64
Author: Andy Williams <[email protected]>
Date:   Fri Sep 22 12:27:40 2017 +0100

    filepanel: Make the filename in menu informational
---
 src/bin/edi_filepanel.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/bin/edi_filepanel.c b/src/bin/edi_filepanel.c
index 7f78a16..610603d 100644
--- a/src/bin/edi_filepanel.c
+++ b/src/bin/edi_filepanel.c
@@ -406,7 +406,8 @@ _item_menu_create(Evas_Object *win, Edi_Dir_Data *sd)
    menu = elm_menu_add(win);
    evas_object_smart_callback_add(menu, "dismissed", _item_menu_dismissed_cb, 
NULL);
 
-   elm_menu_item_add(menu, NULL, "document-properties", basename((char 
*)sd->path), NULL, NULL);
+   menu_it = elm_menu_item_add(menu, NULL, "document-properties", 
basename((char *)sd->path), NULL, NULL);
+   elm_object_item_disabled_set(menu_it, EINA_TRUE);
    elm_menu_item_separator_add(menu, NULL);
 
    elm_menu_item_add(menu, NULL, "fileopen", _("Open"), _item_menu_open_cb, 
sd);

-- 


Reply via email to