summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2015-03-19 14:08:23 +0200
committerYakov Goldberg <yakov.g@samsung.com>2015-03-19 19:10:34 +0200
commitce5984e548d4f6e369b9ddaa7d2cb54ba3e91f27 (patch)
tree83169736fdf3c6262ccdd813f3681798c8d632bb
parentf3a066305bdfa7585df8532c1eb404c13c449cb4 (diff)
Implement efl_file_get() for Elm_Layout and Elm_Videodevs/yakov/file_get_for_layout
"file" property in Efl.File interface is virtual pure, so according to OO principles must be implemented in derived classes. This patch adds implementation of "file.get" in Elm_Layout. Further, Elm_Video class has it's own implementation of "file.set", thus also requires implementation of "file.get"
-rw-r--r--src/lib/elm_layout.c7
-rw-r--r--src/lib/elm_layout.eo1
-rw-r--r--src/lib/elm_video.c6
-rw-r--r--src/lib/elm_video.eo1
4 files changed, 15 insertions, 0 deletions
diff --git a/src/lib/elm_layout.c b/src/lib/elm_layout.c
index 6e3ccb257..19f6b4719 100644
--- a/src/lib/elm_layout.c
+++ b/src/lib/elm_layout.c
@@ -857,6 +857,13 @@ _elm_layout_efl_file_file_set(Eo *obj, Elm_Layout_Smart_Data *sd, const char *fi
857 return int_ret; 857 return int_ret;
858} 858}
859 859
860EOLIAN static void
861_elm_layout_efl_file_file_get(Eo *obj, Elm_Layout_Smart_Data *sd EINA_UNUSED, const char **file, const char **group)
862{
863 ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
864 edje_object_file_get(wd->resize_obj, file, group);
865}
866
860EOLIAN static Eina_Bool 867EOLIAN static Eina_Bool
861_elm_layout_theme_set(Eo *obj, Elm_Layout_Smart_Data *sd, const char *klass, const char *group, const char *style) 868_elm_layout_theme_set(Eo *obj, Elm_Layout_Smart_Data *sd, const char *klass, const char *group, const char *style)
862{ 869{
diff --git a/src/lib/elm_layout.eo b/src/lib/elm_layout.eo
index f606a5552..7dca64677 100644
--- a/src/lib/elm_layout.eo
+++ b/src/lib/elm_layout.eo
@@ -628,6 +628,7 @@ class Elm_Layout (Elm_Container, Efl.File)
628 Eo.Base.constructor; 628 Eo.Base.constructor;
629 Eo.Base.dbg_info_get; 629 Eo.Base.dbg_info_get;
630 Efl.File.file.set; 630 Efl.File.file.set;
631 Efl.File.file.get;
631 Evas.Object_Smart.del; 632 Evas.Object_Smart.del;
632 Evas.Object_Smart.add; 633 Evas.Object_Smart.add;
633 Evas.Object_Smart.calculate; 634 Evas.Object_Smart.calculate;
diff --git a/src/lib/elm_video.c b/src/lib/elm_video.c
index 3db858fcd..c36f74e49 100644
--- a/src/lib/elm_video.c
+++ b/src/lib/elm_video.c
@@ -299,6 +299,12 @@ _elm_video_efl_file_file_set(Eo *obj, Elm_Video_Data *sd, const char *filename,
299 return EINA_TRUE; 299 return EINA_TRUE;
300} 300}
301 301
302EOLIAN static void
303_elm_video_efl_file_file_get(Eo *obj EINA_UNUSED, Elm_Video_Data *sd EINA_UNUSED, const char **filename, const char **key EINA_UNUSED)
304{
305 *filename = emotion_object_file_get(sd->emotion);
306}
307
302EOLIAN static Evas_Object* 308EOLIAN static Evas_Object*
303_elm_video_emotion_get(Eo *obj EINA_UNUSED, Elm_Video_Data *sd) 309_elm_video_emotion_get(Eo *obj EINA_UNUSED, Elm_Video_Data *sd)
304{ 310{
diff --git a/src/lib/elm_video.eo b/src/lib/elm_video.eo
index 3ff579762..56d58d72f 100644
--- a/src/lib/elm_video.eo
+++ b/src/lib/elm_video.eo
@@ -181,6 +181,7 @@ class Elm_Video (Elm_Layout, Efl.File, Elm_Interface_Atspi_Widget_Action)
181 class.constructor; 181 class.constructor;
182 Eo.Base.constructor; 182 Eo.Base.constructor;
183 Efl.File.file.set; 183 Efl.File.file.set;
184 Efl.File.file.get;
184 Evas.Object_Smart.add; 185 Evas.Object_Smart.add;
185 Evas.Object_Smart.del; 186 Evas.Object_Smart.del;
186 Elm_Widget.focus_next_manager_is; 187 Elm_Widget.focus_next_manager_is;