elm_entry_item_provider_prepend(wd->entry, _item_provider, obj);
elm_widget_resize_object_set(obj, wd->entry);
elm_entry_editable_set(wd->entry, 0);
- evas_object_size_hint_weight_set(wd->entry, 1.0, 1.0);
- evas_object_size_hint_align_set(wd->entry, -1.0, -1.0);
+ evas_object_size_hint_weight_set(wd->entry, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_size_hint_align_set(wd->entry, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_event_callback_add(wd->entry, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
_changed_size_hints, obj);
wd->layout = elm_layout_add(wd->hover);\r
elm_layout_theme_set(wd->layout,"autocompleteview","base","default");\r
wd->list = elm_list_add(wd->layout);\r
- evas_object_size_hint_weight_set(wd->list, 1.0, 0.0);\r
- evas_object_size_hint_align_set(wd->list, -1.0, -1.0);\r
+ evas_object_size_hint_weight_set(wd->list, EVAS_HINT_EXPAND, 0.0);\r
+ evas_object_size_hint_align_set(wd->list, EVAS_HINT_FILL, EVAS_HINT_FILL);\r
elm_list_horizontal_mode_set(wd->list, ELM_LIST_COMPRESS);\r
elm_object_style_set(wd->list,"autocompleteview");\r
elm_list_go(wd->list);\r
_elm_theme_object_set(obj, wd->ent, "entry", _getbase(obj), elm_widget_style_get(obj));
elm_entry_entry_set(obj, t);
+ if (password)
+ {
+ if (wd->autoperiod)
+ {
+ elm_entry_autoperiod_set(obj, EINA_FALSE);
+ }
+
+ if (wd->autocapitalize)
+ {
+ elm_entry_autocapitalization_set(obj, EINA_FALSE);
+ }
+ }
+
ic = elm_entry_imf_context_get(obj);
if (ic)
{
ly = edje_object_add(evas_object_evas_get(obj));\r
_elm_theme_object_set(obj,ly, "gallery", "base", "default");\r
\r
- evas_object_size_hint_weight_set(ly, 1.0, 1.0);\r
+ evas_object_size_hint_weight_set(ly, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);\r
evas_object_show(ly);\r
\r
ic = evas_object_image_add(evas_object_evas_get(obj));\r
_mouse_up, it);
evas_object_event_callback_add(it->base, EVAS_CALLBACK_MOUSE_MOVE,
_mouse_move, it);
- evas_object_size_hint_weight_set(it->base, 1.0, 1.0);
- evas_object_size_hint_align_set(it->base, -1.0, -1.0);
+ evas_object_size_hint_weight_set(it->base, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_size_hint_align_set(it->base, EVAS_HINT_FILL, EVAS_HINT_FILL);
if (it->icon)
{
elm_widget_sub_object_add(obj, it->icon);
wd->box = elm_box_add(parent);
elm_box_homogenous_set(wd->box, 1);
- evas_object_size_hint_weight_set(wd->box, 1.0, 0.0);
- evas_object_size_hint_align_set(wd->box, -1.0, 0.0);
+ evas_object_size_hint_weight_set(wd->box, EVAS_HINT_EXPAND, 0.0);
+ evas_object_size_hint_align_set(wd->box, EVAS_HINT_FILL, 0.0);
elm_scroller_content_set(wd->scr, wd->box);
evas_object_show(wd->box);
elm_scrolled_entry_entry_set(wd->entry, "");\r
elm_scrolled_entry_cursor_end_set(wd->entry);\r
evas_object_event_callback_add(wd->entry, EVAS_CALLBACK_KEY_UP, _evas_key_up_cb, obj);\r
- evas_object_size_hint_weight_set(wd->entry, 1.0, 1.0);\r
+ evas_object_size_hint_weight_set(wd->entry, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);\r
evas_object_size_hint_align_set(wd->entry, EVAS_HINT_FILL, EVAS_HINT_FILL);\r
elm_box_pack_end(wd->box, wd->entry);\r
evas_object_show(wd->entry);\r
sprintf(pi_name, "default_%d", page_id+1);
_elm_theme_object_set(obj, it->base, "page", "item", pi_name);
edje_object_size_min_restricted_calc(it->base, &mw, &mh, 0, 0);
- evas_object_size_hint_weight_set(it->base, 1.0, 1.0);
- evas_object_size_hint_align_set(it->base, -1.0, -1.0);
+ evas_object_size_hint_weight_set(it->base, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_size_hint_align_set(it->base, EVAS_HINT_FILL, EVAS_HINT_FILL);
evas_object_resize(it->base, mw, mh);
evas_object_size_hint_min_set(it->base, mw, mh);
}
edje_object_size_min_restricted_calc(obj, &mw, &mh, 0, 0);
- evas_object_size_hint_weight_set(obj, 1.0, 1.0);
- evas_object_size_hint_align_set(obj, -1.0, -1.0);
+ evas_object_size_hint_weight_set(obj, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
+ evas_object_size_hint_align_set(obj, EVAS_HINT_FILL, EVAS_HINT_FILL);
return it;
}
\r
ly = edje_object_add(evas_object_evas_get(obj));\r
_elm_theme_object_set(obj, ly, "stackedicon", "icon", elm_widget_style_get(obj));\r
- evas_object_size_hint_weight_set(ly, 1.0, 1.0);\r
+ evas_object_size_hint_weight_set(ly, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);\r
elm_widget_sub_object_add(obj, ly); \r
\r
ic = evas_object_image_add(evas_object_evas_get(obj));\r
\r
ly = edje_object_add(e);\r
_elm_theme_object_set(obj, ly, "stackedicon", "icon", elm_widget_style_get(obj));\r
- evas_object_size_hint_weight_set(ly, 1.0, 1.0);\r
+ evas_object_size_hint_weight_set(ly, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);\r
\r
ic = evas_object_image_add(e);\r
evas_object_image_alpha_set(ic, EINA_TRUE);\r