From ea1c79796386c589432868e7e13389b4ea015e0c Mon Sep 17 00:00:00 2001 From: Jaehyun Cho Date: Mon, 27 Aug 2018 05:23:00 +0000 Subject: [PATCH] elementary: Remove multiple class inheritance in eo Up to now, there is no restriction on using multiple class inheritance in eo. This makes some language bindings more complicated if the language does not support multiple class inheritance. e.g. C#. To support language bindings in a neat way, multiple class inheritance in eo is replaced with implementing interfaces. To remove multiple class inheritance, each part class in elementary should implement interfaces instead of inheriting from other widget class because part class in elementary basically inherit from the class Efl.Ui.Widget_Part. Differential Revision: https://phab.enlightenment.org/D6904 --- src/lib/elementary/efl_ui_navigation_bar_part_back_button.eo | 2 +- src/lib/elementary/efl_ui_popup_alert_scroll_part.eo | 2 +- src/lib/elementary/efl_ui_popup_alert_text_part.eo | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/elementary/efl_ui_navigation_bar_part_back_button.eo b/src/lib/elementary/efl_ui_navigation_bar_part_back_button.eo index e89e036953..fb342abe6f 100644 --- a/src/lib/elementary/efl_ui_navigation_bar_part_back_button.eo +++ b/src/lib/elementary/efl_ui_navigation_bar_part_back_button.eo @@ -1,4 +1,4 @@ -class Efl.Ui.Navigation_Bar_Part_Back_Button (Efl.Ui.Widget_Part, Efl.Ui.Button) +class Efl.Ui.Navigation_Bar_Part_Back_Button (Efl.Ui.Layout.Part, Efl.Ui.Clickable, Efl.Gfx.Entity, Efl.Text, Efl.Content) { [[Efl Ui Navigation_Bar internal part back button class]] data: null; 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 b890b982a3..f41ac3bda5 100644 --- a/src/lib/elementary/efl_ui_popup_alert_scroll_part.eo +++ b/src/lib/elementary/efl_ui_popup_alert_scroll_part.eo @@ -1,4 +1,4 @@ -class Efl.Ui.Popup_Alert_Scroll_Part (Efl.Ui.Layout.Part_Content, Efl.Ui.Layout.Part_Text) +class Efl.Ui.Popup_Alert_Scroll_Part (Efl.Ui.Layout.Part, Efl.Content, Efl.Text) { [[Efl UI Popup Alert Scroll internal part class]] data: null; 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 236ef2fd0a..fce0a7b6c1 100644 --- a/src/lib/elementary/efl_ui_popup_alert_text_part.eo +++ b/src/lib/elementary/efl_ui_popup_alert_text_part.eo @@ -1,4 +1,4 @@ -class Efl.Ui.Popup_Alert_Text_Part (Efl.Ui.Layout.Part_Content, Efl.Ui.Layout.Part_Text) +class Efl.Ui.Popup_Alert_Text_Part (Efl.Ui.Layout.Part, Efl.Content, Efl.Text) { [[Efl UI Popup Alert Text internal part class]] data: null;