aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCedric BAIL <cedric.bail@free.fr>2019-04-02 11:42:48 -0700
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-04-21 11:36:51 +0200
commitc9e62e957b271baf8267830aaa9972e9818bdd34 (patch)
tree26aa4c890595dcd089506b0e0f2ae548a26814f4
parentelementary: fix elm_fileselector_entry model_get to be properly build with a ... (diff)
downloadefl-c9e62e957b271baf8267830aaa9972e9818bdd34.tar.gz
elementary: fix another instances of no parent for Efl.Io.Model.
Reviewed-by: Marcel Hollerbach <mail@marcel-hollerbach.de> Differential Revision: https://phab.enlightenment.org/D8539
-rw-r--r--src/lib/elementary/elc_fileselector_entry.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/lib/elementary/elc_fileselector_entry.c b/src/lib/elementary/elc_fileselector_entry.c
index 21c8f1f6aa..7274b1dd85 100644
--- a/src/lib/elementary/elc_fileselector_entry.c
+++ b/src/lib/elementary/elc_fileselector_entry.c
@@ -94,7 +94,6 @@ _ACTIVATED_fwd(void *data, const Efl_Event *event)
{
const char *file;
Efl_Model *bmodel, *model;
- Eina_Value path;
ELM_FILESELECTOR_ENTRY_DATA_GET(data, sd);
@@ -103,12 +102,9 @@ _ACTIVATED_fwd(void *data, const Efl_Event *event)
bmodel = efl_ui_view_model_get(sd->button);
if (bmodel)
{
- model = efl_add(efl_class_get(bmodel), NULL);
- eina_value_setup(&path, EINA_VALUE_TYPE_STRING);
- eina_value_set(&path, file);
- efl_model_property_set(model, "path", &path);
- eina_value_flush(&path);
- efl_ui_view_model_set(sd->button, model);
+ model = efl_add(efl_class_get(bmodel), sd->button,
+ efl_io_model_path_set(efl_added, file));
+ efl_ui_view_model_set(sd->button, model);
}
efl_event_callback_legacy_call