aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaehyun Cho <jae_hyun.cho@samsung.com>2017-11-27 18:50:11 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2017-11-27 20:05:35 +0900
commit712ba3c054cc7dc4cc50d3a563817723bdc57153 (patch)
treece0b288fc7dc4aedbb6f0369a5454bf7dd5146b9
parentefl_ui_popup_alert: Remove expandable property for now (diff)
downloadefl-devs/jaehyun/efl_popup.tar.gz
efl_ui_popup: Rebase masterdevs/jaehyun/efl_popup
-rw-r--r--src/lib/elementary/efl_ui_popup.c23
-rw-r--r--src/lib/elementary/efl_ui_popup.eo6
-rw-r--r--src/lib/elementary/efl_ui_popup_alert_part.eo4
-rw-r--r--src/lib/elementary/efl_ui_popup_alert_scroll_part.eo4
-rw-r--r--src/lib/elementary/efl_ui_popup_alert_text_part.eo4
-rw-r--r--src/lib/elementary/efl_ui_popup_part.eo4
6 files changed, 16 insertions, 29 deletions
diff --git a/src/lib/elementary/efl_ui_popup.c b/src/lib/elementary/efl_ui_popup.c
index 114daa09c6..0975386735 100644
--- a/src/lib/elementary/efl_ui_popup.c
+++ b/src/lib/elementary/efl_ui_popup.c
@@ -98,24 +98,6 @@ _efl_ui_popup_elm_widget_widget_parent_set(Eo *obj, Efl_Ui_Popup_Data *pd EINA_U
efl_event_callback_add(pd->win_parent, EFL_GFX_EVENT_MOVE, _parent_geom_cb, obj);
}
-EOLIAN static Eina_Bool
-_efl_ui_popup_efl_container_content_set(Eo *obj, Efl_Ui_Popup_Data *pd EINA_UNUSED, Eo *content)
-{
- return efl_content_set(efl_part(obj, "elm.swallow.content"), content);
-}
-
-EOLIAN static Eo*
-_efl_ui_popup_efl_container_content_get(Eo *obj, Efl_Ui_Popup_Data *pd EINA_UNUSED)
-{
- return efl_content_get(efl_part(obj, "elm.swallow.content"));
-}
-
-EOLIAN static Eo*
-_efl_ui_popup_efl_container_content_unset(Eo *obj, Efl_Ui_Popup_Data *pd EINA_UNUSED)
-{
- return efl_content_unset(efl_part(obj, "elm.swallow.content"));
-}
-
EOLIAN static void
_efl_ui_popup_align_set(Eo *obj EINA_UNUSED, Efl_Ui_Popup_Data *pd, Efl_Ui_Popup_Align type)
{
@@ -269,6 +251,11 @@ _efl_ui_popup_content_unset(Eo *obj, Efl_Ui_Popup_Data *pd EINA_UNUSED, const ch
return efl_content_unset(efl_part(efl_super(obj, MY_CLASS), part));
}
+/* Standard widget overrides */
+
+ELM_PART_CONTENT_DEFAULT_SET(efl_ui_popup, "elm.swallow.content")
+ELM_PART_CONTENT_DEFAULT_IMPLEMENT(efl_ui_popup, Efl_Ui_Popup_Data)
+
/* Efl.Part begin */
ELM_PART_OVERRIDE_CONTENT_SET(efl_ui_popup, EFL_UI_POPUP, Efl_Ui_Popup_Data)
diff --git a/src/lib/elementary/efl_ui_popup.eo b/src/lib/elementary/efl_ui_popup.eo
index 48407fff7e..85bec78996 100644
--- a/src/lib/elementary/efl_ui_popup.eo
+++ b/src/lib/elementary/efl_ui_popup.eo
@@ -7,7 +7,7 @@ enum Efl.Ui.Popup.Align {
bottom
}
-class Efl.Ui.Popup(Efl.Ui.Layout)
+class Efl.Ui.Popup(Efl.Ui.Layout, Efl.Content)
{
methods {
@property align {
@@ -44,8 +44,8 @@ class Efl.Ui.Popup(Efl.Ui.Layout)
Efl.Gfx.position { set; }
Efl.Gfx.visible { set; }
Elm.Widget.widget_parent { set; }
- Efl.Container.content { get; set; }
- Efl.Container.content_unset;
+ Efl.Content.content { get; set; }
+ Efl.Content.content_unset;
Efl.Part.part;
}
events {
diff --git a/src/lib/elementary/efl_ui_popup_alert_part.eo b/src/lib/elementary/efl_ui_popup_alert_part.eo
index 3fc255d602..fa9d04fffb 100644
--- a/src/lib/elementary/efl_ui_popup_alert_part.eo
+++ b/src/lib/elementary/efl_ui_popup_alert_part.eo
@@ -3,8 +3,8 @@ class Efl.Ui.Popup.Alert.Part (Efl.Ui.Layout.Part_Content, Efl.Ui.Layout.Part_Te
[[Efl UI Popup Alert internal part class]]
data: null;
implements {
- Efl.Container.content { get; set; }
- Efl.Container.content_unset;
+ Efl.Content.content { get; set; }
+ Efl.Content.content_unset;
Efl.Text.text { get; set; }
}
}
diff --git a/src/lib/elementary/efl_ui_popup_alert_scroll_part.eo b/src/lib/elementary/efl_ui_popup_alert_scroll_part.eo
index 24d980893b..984f91161a 100644
--- a/src/lib/elementary/efl_ui_popup_alert_scroll_part.eo
+++ b/src/lib/elementary/efl_ui_popup_alert_scroll_part.eo
@@ -3,8 +3,8 @@ class Efl.Ui.Popup.Alert.Scroll.Part (Efl.Ui.Layout.Part_Content, Efl.Ui.Layout.
[[Efl UI Popup Alert Scroll internal part class]]
data: null;
implements {
- Efl.Container.content { get; set; }
- Efl.Container.content_unset;
+ Efl.Content.content { get; set; }
+ Efl.Content.content_unset;
Efl.Text.text { set; get; }
}
}
diff --git a/src/lib/elementary/efl_ui_popup_alert_text_part.eo b/src/lib/elementary/efl_ui_popup_alert_text_part.eo
index f9e5fda8a3..e915644219 100644
--- a/src/lib/elementary/efl_ui_popup_alert_text_part.eo
+++ b/src/lib/elementary/efl_ui_popup_alert_text_part.eo
@@ -3,8 +3,8 @@ class Efl.Ui.Popup.Alert.Text.Part (Efl.Ui.Layout.Part_Content, Efl.Ui.Layout.Pa
[[Efl UI Popup Alert Text internal part class]]
data: null;
implements {
- Efl.Container.content { get; set; }
- Efl.Container.content_unset;
+ Efl.Content.content { get; set; }
+ Efl.Content.content_unset;
Efl.Text.text { get; set; }
}
}
diff --git a/src/lib/elementary/efl_ui_popup_part.eo b/src/lib/elementary/efl_ui_popup_part.eo
index 8df70e0c50..5cb6fdf7fb 100644
--- a/src/lib/elementary/efl_ui_popup_part.eo
+++ b/src/lib/elementary/efl_ui_popup_part.eo
@@ -3,8 +3,8 @@ class Efl.Ui.Popup.Part (Efl.Ui.Layout.Part_Content, Efl.Canvas.Object, Efl.File
[[Efl UI Popup internal part class]]
data: null;
implements {
- Efl.Container.content { get; set; }
- Efl.Container.content_unset;
+ Efl.Content.content { get; set; }
+ Efl.Content.content_unset;
Efl.Canvas.Object.repeat_events { set; get; }
Efl.File.file { set; }
}