Implement efl_file_get() for Elm_Layout and Elm_Video
"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"
This commit is contained in:
parent
56b6792584
commit
9a2f068740
|
@ -857,6 +857,13 @@ _elm_layout_efl_file_file_set(Eo *obj, Elm_Layout_Smart_Data *sd, const char *fi
|
|||
return int_ret;
|
||||
}
|
||||
|
||||
EOLIAN static void
|
||||
_elm_layout_efl_file_file_get(Eo *obj, Elm_Layout_Smart_Data *sd EINA_UNUSED, const char **file, const char **group)
|
||||
{
|
||||
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd);
|
||||
edje_object_file_get(wd->resize_obj, file, group);
|
||||
}
|
||||
|
||||
EOLIAN static Eina_Bool
|
||||
_elm_layout_theme_set(Eo *obj, Elm_Layout_Smart_Data *sd, const char *klass, const char *group, const char *style)
|
||||
{
|
||||
|
|
|
@ -628,6 +628,7 @@ class Elm_Layout (Elm_Container, Efl.File)
|
|||
Eo.Base.constructor;
|
||||
Eo.Base.dbg_info_get;
|
||||
Efl.File.file.set;
|
||||
Efl.File.file.get;
|
||||
Evas.Object_Smart.del;
|
||||
Evas.Object_Smart.add;
|
||||
Evas.Object_Smart.calculate;
|
||||
|
|
|
@ -299,6 +299,13 @@ _elm_video_efl_file_file_set(Eo *obj, Elm_Video_Data *sd, const char *filename,
|
|||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
EOLIAN static void
|
||||
_elm_video_efl_file_file_get(Eo *obj EINA_UNUSED, Elm_Video_Data *sd EINA_UNUSED, const char **filename, const char **key EINA_UNUSED)
|
||||
{
|
||||
if (filename)
|
||||
*filename = emotion_object_file_get(sd->emotion);
|
||||
}
|
||||
|
||||
EOLIAN static Evas_Object*
|
||||
_elm_video_emotion_get(Eo *obj EINA_UNUSED, Elm_Video_Data *sd)
|
||||
{
|
||||
|
|
|
@ -181,6 +181,7 @@ class Elm_Video (Elm_Layout, Efl.File, Elm_Interface_Atspi_Widget_Action)
|
|||
class.constructor;
|
||||
Eo.Base.constructor;
|
||||
Efl.File.file.set;
|
||||
Efl.File.file.get;
|
||||
Evas.Object_Smart.add;
|
||||
Evas.Object_Smart.del;
|
||||
Elm_Widget.focus_next_manager_is;
|
||||
|
|
Loading…
Reference in New Issue