bu5hm4n pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=c440ee442d98cffe8d5f613990bf7497be7ed726

commit c440ee442d98cffe8d5f613990bf7497be7ed726
Author: Marcel Hollerbach <[email protected]>
Date:   Thu Jan 24 11:40:34 2019 +0100

    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 <[email protected]>
    Differential Revision: https://phab.enlightenment.org/D7754
---
 src/lib/elementary/elc_fileselector_entry.c  | 1 +
 src/lib/elementary/elm_fileselector_entry.eo | 3 +++
 2 files changed, 4 insertions(+)

diff --git a/src/lib/elementary/elc_fileselector_entry.c 
b/src/lib/elementary/elc_fileselector_entry.c
index a6e7a70954..5251644c5a 100644
--- a/src/lib/elementary/elc_fileselector_entry.c
+++ b/src/lib/elementary/elc_fileselector_entry.c
@@ -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);
diff --git a/src/lib/elementary/elm_fileselector_entry.eo 
b/src/lib/elementary/elm_fileselector_entry.eo
index 3a91c6ec2f..c9fdc6e6de 100644
--- a/src/lib/elementary/elm_fileselector_entry.eo
+++ b/src/lib/elementary/elm_fileselector_entry.eo
@@ -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;
+   }
 }

-- 


Reply via email to