diff options
author | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2019-08-23 18:20:32 +0200 |
---|---|---|
committer | Marcel Hollerbach <mail@marcel-hollerbach.de> | 2019-08-29 14:42:43 +0200 |
commit | ffafe749ed9c813696929262aacb61fd5af0ecc2 (patch) | |
tree | f6f5bccd65ac43105cf43dab694b406b73a3b3af /src/lib/elementary/efl_ui_tab_bar.eo | |
parent | 3c317618e53cd74746fd6e8923091e4a073845f5 (diff) | |
download | efl-ffafe749ed9c813696929262aacb61fd5af0ecc2.tar.gz |
efl_ui_tab_bar: migrate to Efl.Pack_Linear
with pack linear it is a lot more convinient and error prover to add
items to this widget, this also comes with the pack test suite, which
verifies that this behaviour is not broken. Additionally we have fewer
APIs that a user has to learn.
Reviewed-by: WooHyun Jung <woohyun0705@gmail.com>
Differential Revision: https://phab.enlightenment.org/D9730
Diffstat (limited to 'src/lib/elementary/efl_ui_tab_bar.eo')
-rw-r--r-- | src/lib/elementary/efl_ui_tab_bar.eo | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/src/lib/elementary/efl_ui_tab_bar.eo b/src/lib/elementary/efl_ui_tab_bar.eo index f193dd2860..eff7281e22 100644 --- a/src/lib/elementary/efl_ui_tab_bar.eo +++ b/src/lib/elementary/efl_ui_tab_bar.eo @@ -1,24 +1,12 @@ -class @beta Efl.Ui.Tab_Bar extends Efl.Ui.Layout_Base implements Efl.Ui.Single_Selectable +class @beta Efl.Ui.Tab_Bar extends Efl.Ui.Layout_Base implements Efl.Ui.Single_Selectable, Efl.Pack_Linear { [[Tab Bar class]] methods { - tab_count @const { - return: uint; - } - tab_add @beta { - params { - @in index: int; - @in icon : Efl.Ui.Tab_Bar_Default_Item; - } - } - tab_remove @beta { - params { - @in index: int; - } - } + } implements { Efl.Object.constructor; + Efl.Object.finalize; Efl.Object.destructor; Efl.Ui.Single_Selectable.last_selected {get;} Efl.Ui.Single_Selectable.fallback_selection {get; set;} @@ -37,5 +25,8 @@ class @beta Efl.Ui.Tab_Bar extends Efl.Ui.Layout_Base implements Efl.Ui.Single_S } composite { Efl.Pack_Linear; + Efl.Pack; + Efl.Pack_Linear; + Efl.Container; } } |