|
|
|
@ -58,6 +58,8 @@ e_entry_dialog_show(const char *title, const char *icon, const char *text, |
|
|
|
|
|
|
|
|
|
ed->entry = e_widget_entry_add(dia->win, &(ed->text), NULL, NULL, NULL); |
|
|
|
|
evas_object_smart_callback_add(ed->entry, "key_down", _e_entry_cb_key_down, ed); |
|
|
|
|
evas_object_size_hint_weight_set(ed->entry, EVAS_HINT_EXPAND, 0.5); |
|
|
|
|
|
|
|
|
|
e_widget_list_object_append(o, ed->entry, 1, 1, 0.5); |
|
|
|
|
e_widget_size_min_get(o, &w, &h); |
|
|
|
|
e_dialog_content_set(dia, o, 2 * w, h); |
|
|
|
@ -66,6 +68,7 @@ e_entry_dialog_show(const char *title, const char *icon, const char *text, |
|
|
|
|
e_dialog_button_add(dia, !button2_text ? _("Cancel") : button2_text, NULL, _e_entry_dialog_cancel, ed); |
|
|
|
|
|
|
|
|
|
elm_win_center(dia->win, 1, 1); |
|
|
|
|
e_dialog_resizable_set(dia, 1); |
|
|
|
|
e_dialog_show(dia); |
|
|
|
|
e_widget_focus_set(ed->entry, 1); |
|
|
|
|
e_widget_entry_select_all(ed->entry); |
|
|
|
|