From 597a142622cd6be35f4b545edc58855f0420078b Mon Sep 17 00:00:00 2001 From: Larry Date: Fri, 12 Feb 2016 20:35:00 -0200 Subject: [PATCH] elm_layout: moved Elm_Layout_Part_Alias_Description to elm_layout.eo --- legacy/elementary/src/lib/elm_image.eo | 2 +- legacy/elementary/src/lib/elm_layout.eo | 17 +++++++++++++++++ legacy/elementary/src/lib/elm_widget_layout.h | 23 ----------------------- 3 files changed, 18 insertions(+), 24 deletions(-) diff --git a/legacy/elementary/src/lib/elm_image.eo b/legacy/elementary/src/lib/elm_image.eo index dada8c5..b458872 100644 --- a/legacy/elementary/src/lib/elm_image.eo +++ b/legacy/elementary/src/lib/elm_image.eo @@ -21,7 +21,7 @@ enum Elm.Image_Orient flip_transverse = Evas.Image_Orient.flip_transverse } -struct Elm.Image.Progress +struct Elm.Image_Progress { [[ Structure associated with smart callback 'download,progress'. diff --git a/legacy/elementary/src/lib/elm_layout.eo b/legacy/elementary/src/lib/elm_layout.eo index 11b7cef..50f4e88 100644 --- a/legacy/elementary/src/lib/elm_layout.eo +++ b/legacy/elementary/src/lib/elm_layout.eo @@ -1,3 +1,20 @@ +struct Elm.Layout_Part_Alias_Description +{ + [[ + Elementary Layout-based widgets may declare part proxies, i.e., aliases + for real theme part names to expose to the API calls: + - elm_layout_text_set() + - elm_layout_text_get() + - elm_layout_content_set() + - elm_layout_content_get() + - elm_layout_content_unset() + and their equivalents. This list must be set on the "_smart_set_user()" function of inheriting widgets, + so that part aliasing is handled automatically for them. + ]] + alias: const(char)*; [[Alternate name for a given (real) part. Calls receiving this string as a part name will be translated to the string at Elm.Layout_Part_Proxies_Description::real_part]] + real_part: const(char)*; [[Target part name for the alias set on Elm.Layout_Part_Proxies_Description::real_part. An example of usage would be "default" on that field, with "elm.content.swallow" on this one]] +} + class Elm.Layout (Elm.Container, Efl.File) { eo_prefix: elm_obj_layout; diff --git a/legacy/elementary/src/lib/elm_widget_layout.h b/legacy/elementary/src/lib/elm_widget_layout.h index a8c5e17..ded10f3 100644 --- a/legacy/elementary/src/lib/elm_widget_layout.h +++ b/legacy/elementary/src/lib/elm_widget_layout.h @@ -45,29 +45,6 @@ */ /** - * @struct _Elm_Layout_Part_Alias_Description - * - * Elementary Layout-based widgets may declare part proxies, i.e., aliases - * for real theme part names to expose to the API calls: - * - elm_layout_text_set() - * - elm_layout_text_get() - * - elm_layout_content_set() - * - elm_layout_content_get() - * - elm_layout_content_unset() - * and their equivalents. This list must be set on the - * @c "_smart_set_user()" function of inheriting widgets, so that part - * aliasing is handled automatically for them. - * - * @ingroup Widget - */ -struct _Elm_Layout_Part_Alias_Description -{ - const char *alias; /**< Alternate name for a given (real) part. Calls receiving this string as a part name will be translated to the string at _Elm_Layout_Part_Proxies_Description::real_part */ - - const char *real_part; /**< Target part name for the alias set on @ref _Elm_Layout_Part_Proxies_Description::real_part. An example of usage would be @c "default" on that field, with @c "elm.content.swallow" on this one */ -}; - -/** * Base widget smart data extended with layout instance data. */ typedef struct _Elm_Layout_Smart_Data -- 2.7.4