filepanel: make dialogues more informative.

This commit is contained in:
Al Poole 2017-09-22 15:07:23 +01:00
parent ef18a26ddc
commit e4704ed0ba
1 changed files with 25 additions and 3 deletions

View File

@ -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