netstar pushed a commit to branch master.

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

commit e4704ed0ba495cce6c546aa8c1fe53e6a8b36974
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 610603d..c97651c 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

-- 


Reply via email to