Changeset View
Changeset View
Standalone View
Standalone View
src/lib/elementary/elm_view_form.c
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
42 | /** | 42 | /** | ||
43 | * @brief Add new widget object. | 43 | * @brief Add new widget object. | ||
44 | * Adds new widget object on the list | 44 | * Adds new widget object on the list | ||
45 | * and perform initial setup. | 45 | * and perform initial setup. | ||
46 | */ | 46 | */ | ||
47 | static Eina_Bool | 47 | static Eina_Bool | ||
48 | _elm_view_widget_add(Elm_View_Form_Data *priv, const char *property, Evas_Object *link) | 48 | _elm_view_widget_add(Elm_View_Form_Data *priv, const char *property, Evas_Object *link) | ||
49 | { | 49 | { | ||
50 | if (!efl_isa(link, EFL_UI_MODEL_CONNECT_INTERFACE)) return EINA_FALSE; | 50 | if (!efl_isa(link, EFL_UI_BIND_INTERFACE)) return EINA_FALSE; | ||
51 | if (!property) property = "default"; | 51 | if (!property) property = "default"; | ||
52 | 52 | | |||
53 | efl_ui_view_model_set(link, priv->model); | 53 | efl_ui_view_model_set(link, priv->model); | ||
54 | efl_ui_model_connect(link, "default", property); | 54 | efl_ui_bind_property(link, "default", property); | ||
55 | efl_event_callback_add(link, EFL_EVENT_DEL, _link_dying, priv); | 55 | efl_event_callback_add(link, EFL_EVENT_DEL, _link_dying, priv); | ||
56 | 56 | | |||
57 | priv->links = eina_list_append(priv->links, link); | 57 | priv->links = eina_list_append(priv->links, link); | ||
58 | 58 | | |||
59 | return EINA_TRUE; | 59 | return EINA_TRUE; | ||
60 | } | 60 | } | ||
61 | /** | 61 | /** | ||
62 | * Helper functions - End | 62 | * Helper functions - End | ||
Show All 37 Lines |