forked from enlightenment/edi
filepanel: make dialogues more informative.
This commit is contained in:
parent
ef18a26ddc
commit
e4704ed0ba
|
@ -336,8 +336,16 @@ static void
|
||||||
_item_menu_del_cb(void *data, Evas_Object *obj EINA_UNUSED,
|
_item_menu_del_cb(void *data, Evas_Object *obj EINA_UNUSED,
|
||||||
void *event_info 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);
|
_item_menu_del_do_cb, data);
|
||||||
|
|
||||||
|
eina_strbuf_free(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -374,8 +382,14 @@ static void
|
||||||
_item_menu_scm_del_cb(void *data, Evas_Object *obj EINA_UNUSED,
|
_item_menu_scm_del_cb(void *data, Evas_Object *obj EINA_UNUSED,
|
||||||
void *event_info 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);
|
_item_menu_scm_del_do_cb, data);
|
||||||
|
eina_strbuf_free(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -477,8 +491,16 @@ static void
|
||||||
_item_menu_rmdir_cb(void *data, Evas_Object *obj EINA_UNUSED,
|
_item_menu_rmdir_cb(void *data, Evas_Object *obj EINA_UNUSED,
|
||||||
void *event_info 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);
|
_item_menu_rmdir_do_cb, data);
|
||||||
|
|
||||||
|
eina_strbuf_free(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in New Issue