summaryrefslogtreecommitdiff
path: root/src/examples/elementary/layout_property_bind.c
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-02-17 19:11:26 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-02-21 08:56:13 +0100
commit186eead7c92ea97ff8bd27c01e0be748d0898dac (patch)
treedfbf17e781ddd8b7ab5984367d8313dcf8c025fe /src/examples/elementary/layout_property_bind.c
parentcce0a6a182a7460b1a133d5430c581597df850fc (diff)
layout_property_bind: make it work again
Diffstat (limited to '')
-rw-r--r--src/examples/elementary/layout_property_bind.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/examples/elementary/layout_property_bind.c b/src/examples/elementary/layout_property_bind.c
index 65103d49d4..b5915ae62c 100644
--- a/src/examples/elementary/layout_property_bind.c
+++ b/src/examples/elementary/layout_property_bind.c
@@ -129,11 +129,11 @@ elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
129 /*Label widget */ 129 /*Label widget */
130 _label_init(win, bxr, "FILENAME:"); 130 _label_init(win, bxr, "FILENAME:");
131 priv->label = _label_init(win, bxr, ""); 131 priv->label = _label_init(win, bxr, "");
132 efl_ui_model_connect(priv->label, "default", "path"); //connect "default" to "filename" property 132 efl_ui_property_bind(priv->label, "default", "path"); //connect "default" to "filename" property
133 133
134 /* Entry widget */ 134 /* Entry widget */
135 priv->entry = elm_entry_add(win); 135 priv->entry = elm_entry_add(win);
136 efl_ui_model_connect(priv->entry, "elm.text", "path"); //connect "elm.text" to "path" property 136 efl_ui_property_bind(priv->entry, "elm.text", "path"); //connect "elm.text" to "path" property
137 elm_entry_single_line_set(priv->entry, EINA_TRUE); 137 elm_entry_single_line_set(priv->entry, EINA_TRUE);
138 elm_box_pack_end(bxr, priv->entry); 138 elm_box_pack_end(bxr, priv->entry);
139 evas_object_size_hint_weight_set(priv->entry, EVAS_HINT_FILL, 0); 139 evas_object_size_hint_weight_set(priv->entry, EVAS_HINT_FILL, 0);
@@ -146,13 +146,13 @@ elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
146 elm_object_text_set(priv->bt, "update model"); 146 elm_object_text_set(priv->bt, "update model");
147 evas_object_smart_callback_add(priv->bt, "clicked", _update_cb, priv); 147 evas_object_smart_callback_add(priv->bt, "clicked", _update_cb, priv);
148 edje_object_signal_callback_add(priv->bt, "test*" , "*", _signal_cb, priv); 148 edje_object_signal_callback_add(priv->bt, "test*" , "*", _signal_cb, priv);
149 efl_ui_model_connect(priv->bt, "signal/test-%v", "size"); 149 efl_ui_property_bind(priv->bt, "signal/test-%v", "size");
150 evas_object_show(priv->bt); 150 evas_object_show(priv->bt);
151 151
152 /* Image widget */ 152 /* Image widget */
153 img_factory = efl_add(EFL_UI_IMAGE_FACTORY_CLASS, win); 153 img_factory = efl_add(EFL_UI_IMAGE_FACTORY_CLASS, win);
154 efl_ui_model_connect(img_factory, "", "path"); //connect to "path" property 154 efl_ui_property_bind(img_factory, "", "path"); //connect to "path" property
155 efl_ui_factory_model_connect(priv->bt, "icon", img_factory); 155 efl_ui_factory_bind(priv->bt, "icon", img_factory);
156 156
157 priv->img = efl_ui_factory_create(img_factory, NULL, win); 157 priv->img = efl_ui_factory_create(img_factory, NULL, win);
158 elm_box_pack_end(bxr, priv->img); 158 elm_box_pack_end(bxr, priv->img);