mainview: unrecognise mime popup UI improvements.

Summary: See http://www.enlightenment.org/ss/e-599c3eeac02540.00312412.jpg

Reviewers: ajwillia.ms

Reviewed By: ajwillia.ms

Differential Revision: https://phab.enlightenment.org/D5121
This commit is contained in:
Al Poole 2017-08-26 16:13:27 +01:00 committed by Andy Williams
parent da30264929
commit 61b79e7ed6
1 changed files with 24 additions and 3 deletions

View File

@ -392,15 +392,36 @@ _edi_popup_cancel_cb(void *data, Evas_Object *obj EINA_UNUSED,
static void
_edi_mainview_panel_mime_content_safe_popup(void)
{
Evas_Object *popup, *label, *button;
Evas_Object *popup, *box, *table, *label, *button, *icon, *sep;
popup = elm_popup_add(_main_win);
elm_object_part_text_set(popup, "title,text",
"Unrecognized file type");
table = elm_table_add(popup);
icon = elm_icon_add(table);
elm_icon_standard_set(icon, "dialog-warning");
evas_object_size_hint_min_set(icon, 48 * elm_config_scale_get(), 48 * elm_config_scale_get());
evas_object_size_hint_weight_set(icon, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(icon, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_show(icon);
elm_table_pack(table, icon, 0, 0, 1, 1);
box = elm_box_add(popup);
label = elm_label_add(popup);
elm_object_text_set(label, "To force open, select this file in the file browser, and use \"open as\" menu options.");
elm_object_text_set(label, "To force open, select this file in the file browser, <br>and use \"open as\" menu options.");
evas_object_show(label);
elm_object_content_set(popup, label);
elm_box_pack_end(box, label);
sep = elm_separator_add(box);
elm_separator_horizontal_set(sep, EINA_TRUE);
evas_object_show(sep);
elm_box_pack_end(box, sep);
elm_table_pack(table, box, 1, 0, 1, 1);
evas_object_show(box);
elm_object_content_set(popup, table);
evas_object_show(table);
button = elm_button_add(popup);
elm_object_text_set(button, "OK");