netstar pushed a commit to branch edi-0.6. http://git.enlightenment.org/tools/edi.git/commit/?id=dcac3dc39c1401ebbdc6869a222d838cd4cc2612
commit dcac3dc39c1401ebbdc6869a222d838cd4cc2612 Author: Al Poole <nets...@gmail.com> Date: Fri Sep 22 15:07:23 2017 +0100 filepanel: make dialogues more informative. --- src/bin/edi_filepanel.c | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/src/bin/edi_filepanel.c b/src/bin/edi_filepanel.c index 45442c9..565c5aa 100644 --- a/src/bin/edi_filepanel.c +++ b/src/bin/edi_filepanel.c @@ -336,8 +336,16 @@ static void _item_menu_del_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { - edi_screens_message_confirm(_main_win, _("Are you sure you want to delete this file?"), + Edi_Dir_Data *sd = data; + Eina_Strbuf *message = eina_strbuf_new(); + + eina_strbuf_append_printf(message, _("Are you sure you want to delete <hilight>%s</hilight> ?"), + ecore_file_file_get(sd->path)); + + edi_screens_message_confirm(_main_win, eina_strbuf_string_get(message), _item_menu_del_do_cb, data); + + eina_strbuf_free(message); } static void @@ -374,8 +382,14 @@ static void _item_menu_scm_del_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { - edi_screens_message_confirm(_main_win, _("Are you sure you want to delete this file?"), + Edi_Dir_Data *sd = data; + Eina_Strbuf *message = eina_strbuf_new(); + + eina_strbuf_append_printf(message, _("Are you sure you want to delete <hilight>%s</hilight> ?"), + ecore_file_file_get(sd->path)); + edi_screens_message_confirm(_main_win, eina_strbuf_string_get(message), _item_menu_scm_del_do_cb, data); + eina_strbuf_free(message); } static void @@ -477,8 +491,16 @@ static void _item_menu_rmdir_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) { - edi_screens_message_confirm(_main_win, _("Are you sure you want to delete this directory?"), + Edi_Dir_Data *sd = data; + Eina_Strbuf *message = eina_strbuf_new(); + + eina_strbuf_append_printf(message, _("Are you sure you want to delete <hilight>%s</hilight> ?"), + ecore_file_file_get(sd->path)); + + edi_screens_message_confirm(_main_win, eina_strbuf_string_get(message), _item_menu_rmdir_do_cb, data); + + eina_strbuf_free(message); } static void --