forked from enlightenment/efl
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:
parent
1c27529363
commit
c440ee442d
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue