elm_fileselector_entry: resolve missing interface api by composition

this patch will redirect every elm_interface_fileselector call to the
added fileselector button. This resolves the missing fileselector API on
the fileselector entry.

ref T5719

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D7754
This commit is contained in:
Marcel Hollerbach 2019-01-24 11:40:34 +01:00
parent 1c27529363
commit c440ee442d
2 changed files with 4 additions and 0 deletions

View File

@ -241,6 +241,7 @@ _elm_fileselector_entry_efl_canvas_group_group_add(Eo *obj, Elm_Fileselector_Ent
efl_ui_mirrored_automatic_set(priv->button, EINA_FALSE);
efl_ui_mirrored_set(priv->button, efl_ui_mirrored_get(obj));
elm_widget_style_set(priv->button, "fileselector_entry/default");
efl_composite_attach(obj, priv->button);
elm_fileselector_expandable_set
(priv->button, _elm_config->fileselector_expand_enable);

View File

@ -22,4 +22,7 @@ class Elm.Fileselector_Entry extends Efl.Ui.Layout implements Elm.Interface.File
file,chosen: void; [[Called when a file was chosen in the fileselector]]
press: void; [[Called when entry was pressed]]
}
composite {
Elm.Interface.Fileselector;
}
}