/* Efl.Ui enum and struct types */
+import eina_types;
-enum Efl.Ui.Theme_Apply_Error
-{
- [[Return error code when setting the style on a widget.]]
- none = 0, [[Successfully applied the requested style from the current
- theme.]]
- default = 1, [[Successfully applied the default style. The widget may
- look different from the rest of the UI if a custom theme
- is in use, but it should be usable.]]
- generic = 2, [[Failed to apply theme. The widget may become unusable.]]
-}
+var Efl.Ui.Theme.Apply_Error.NONE: Eina.Error; [[Successfully applied the requested style from the current theme.]]
+var Efl.Ui.Theme.Apply_Error.DEFAULT: Eina.Error; [[Successfully applied the default style. The widget may
+ look different from the rest of the UI if a custom theme
+ is in use, but it should be usable.]]
+var Efl.Ui.Theme.Apply_Error.GENERIC: Eina.Error; [[Failed to apply theme. The widget may become unusable.]]
enum Efl.Ui.Focus.Direction
{
/* FIXME: replicated from elm_layout just because button's icon spot
* is elm.swallow.content, not elm.swallow.icon. Fix that whenever we
* can changed the theme API */
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_efl_ui_button_legacy_efl_ui_widget_theme_apply(Eo *obj, void *_pd EINA_UNUSED)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, EFL_UI_BUTTON_LEGACY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
}
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_efl_ui_calendar_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_Calendar_Data *sd)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
return EINA_TRUE;
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_efl_ui_check_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_Check_Data *sd EINA_UNUSED)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EFL_UI_THEME_APPLY_ERROR_GENERIC);
/* FIXME: replicated from elm_layout just because check's icon spot
* is elm.swallow.content, not elm.swallow.icon. Fix that whenever we
* can changed the theme API */
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_efl_ui_check_legacy_efl_ui_widget_theme_apply(Eo *obj, void *_pd EINA_UNUSED)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, EFL_UI_CHECK_LEGACY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
evas_object_size_hint_max_set(obj, -1, -1);
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_efl_ui_clock_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_Clock_Data *sd)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
Clock_Field *field;
char buf[BUFFER_SIZE];
evas_object_size_hint_max_set(obj, maxw, maxh);
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_efl_ui_flip_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_Flip_Data *sd EINA_UNUSED)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_efl_ui_grid_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_Grid_Data *pd)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
Eo *eo;
eo = efl_finalize(efl_super(obj, MY_CLASS));
ELM_WIDGET_DATA_GET_OR_RETURN(eo, wd, eo);
- Efl_Ui_Theme_Apply_Error theme_apply = efl_ui_layout_theme_set(obj, "grid_item", NULL, NULL);
+ Eina_Error theme_apply = efl_ui_layout_theme_set(obj, "grid_item", NULL, NULL);
if (theme_apply == EFL_UI_THEME_APPLY_ERROR_GENERIC)
CRI("Default Item(%p) failed to set theme [efl/grid_item]!", eo);
if (sd->prev_img) evas_object_clip_set(sd->prev_img, clip);
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_efl_ui_image_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_Image_Data *sd EINA_UNUSED)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
if (sd->stdicon)
_elm_theme_object_icon_set(obj, sd->stdicon, elm_widget_style_get(obj));
return EINA_TRUE;
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_efl_ui_image_zoomable_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_Image_Zoomable_Data *sd)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
Eina_Bool fdo = EINA_FALSE;
if (sd->stdicon)
_flush_mirrored_state(obj);
}
-static Efl_Ui_Theme_Apply_Error
+static Eina_Error
_efl_ui_layout_theme_internal(Eo *obj, Efl_Ui_Layout_Data *sd)
{
- Efl_Ui_Theme_Apply_Error ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EFL_UI_THEME_APPLY_ERROR_GENERIC);
return ret;
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_efl_ui_layout_base_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_Layout_Data *sd)
{
- Efl_Ui_Theme_Apply_Error theme_apply_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error theme_apply_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
theme_apply_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (theme_apply_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return EFL_UI_THEME_APPLY_ERROR_GENERIC;
if (style) *style = elm_widget_theme_style_get(obj);
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_efl_ui_layout_base_theme_set(Eo *obj, Efl_Ui_Layout_Data *sd, const char *klass, const char *group, const char *style)
{
Eina_Bool changed = EINA_FALSE;
EAPI Eina_Bool
elm_layout_theme_set(Evas_Object *obj, const char *klass, const char *group, const char *style)
{
- Efl_Ui_Theme_Apply_Error theme_apply_ret;
+ Eina_Error theme_apply_ret;
theme_apply_ret = efl_ui_layout_theme_set(obj, klass, group, style);
return (theme_apply_ret != EFL_UI_THEME_APPLY_ERROR_GENERIC);
If this returns $false the widget is very likely to become
non-functioning.
]]
- return: Efl.Ui.Theme_Apply_Error(2);
+ return: Eina.Error;
[[Whether the style was successfully applied or not, see
- the values of @Efl.Ui.Theme_Apply_Error for more information.]]
+ the values of Efl.Ui.Theme.Apply_Error for more information.]]
}
get {
[[Get information about the current theme in use.]]
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, NULL);
- Efl_Ui_Theme_Apply_Error theme_apply_ret = efl_ui_layout_theme_set(obj, "list", "base", efl_ui_widget_style_get(obj));
+ Eina_Error theme_apply_ret = efl_ui_layout_theme_set(obj, "list", "base", efl_ui_widget_style_get(obj));
if (theme_apply_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC)
CRI("list(%p) failed to set theme [efl/list:%s]!", obj, efl_ui_widget_style_get(obj) ?: "NULL");
}
*/
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_efl_ui_list_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_List_Data *pd)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
Eo *eo;
eo = efl_finalize(efl_super(obj, MY_CLASS));
ELM_WIDGET_DATA_GET_OR_RETURN(eo, wd, eo);
- Efl_Ui_Theme_Apply_Error theme_apply_ret = efl_ui_layout_theme_set(obj, "list_item", NULL, NULL);
+ Eina_Error theme_apply_ret = efl_ui_layout_theme_set(obj, "list_item", NULL, NULL);
if (theme_apply_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC)
CRI("Default Item(%p) failed to set theme [efl/list_item]!", eo);
Eo *eo;
eo = efl_finalize(efl_super(obj, MY_CLASS));
ELM_WIDGET_DATA_GET_OR_RETURN(eo, wd, eo);
- Efl_Ui_Theme_Apply_Error theme_apply_ret = efl_ui_layout_theme_set(obj, "list_item", NULL, "empty");
+ Eina_Error theme_apply_ret = efl_ui_layout_theme_set(obj, "list_item", NULL, "empty");
if (theme_apply_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC)
CRI("Empty Item(%p) failed to set theme [efl/list_item:empty]!", eo);
_state_active(obj, pd);
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_efl_ui_nstate_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_Nstate_Data *pd)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
_access_obj_process(obj, EINA_TRUE);
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_efl_ui_panel_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_Panel_Data *sd)
{
const char *str;
Evas_Coord minw = 0, minh = 0;
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EFL_UI_THEME_APPLY_ERROR_GENERIC);
return eina_strbuf_release(new_group);
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_efl_ui_panes_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_Panes_Data *sd)
{
double size;
Evas_Coord minw = 0, minh = 0;
char *group;
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
group = _efl_ui_panes_theme_group_get(obj, sd);
if (group)
return eina_strbuf_release(new_group);
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_efl_ui_progressbar_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_Progressbar_Data *sd)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EFL_UI_THEME_APPLY_ERROR_GENERIC);
char *group;
/* FIXME: replicated from elm_layout just because progressbar's icon spot
* is elm.swallow.content, not elm.swallow.icon. Fix that whenever we
* can changed the theme API */
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_efl_ui_progressbar_legacy_efl_ui_widget_theme_apply(Eo *obj, void *_pd EINA_UNUSED)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, EFL_UI_PROGRESSBAR_LEGACY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
return EINA_TRUE;
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_efl_ui_radio_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_Radio_Data *sd)
{
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EFL_UI_THEME_APPLY_ERROR_GENERIC);
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, EFL_UI_CHECK_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
elm_layout_sizing_eval(obj);
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_efl_ui_radio_legacy_efl_ui_widget_theme_apply(Eo *obj, void *_pd EINA_UNUSED)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, EFL_UI_RADIO_LEGACY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
efl_gfx_hint_size_min_set(obj, size);
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_efl_ui_scroller_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_Scroller_Data *sd)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
return eina_strbuf_release(new_group);
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_efl_ui_slider_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_Slider_Data *sd)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EFL_UI_THEME_APPLY_ERROR_GENERIC);
char *group;
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_efl_ui_spin_button_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_Spin_Button_Data *sd EINA_UNUSED)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
char *group;
group = _efl_ui_spin_button_theme_group_get(obj, sd);
{
Eo *tab, *icon_obj;
Tab_Info *ti;
- Efl_Ui_Theme_Apply_Error theme_apply;
+ Eina_Error theme_apply;
ti = calloc(1, sizeof(*ti));
evas_object_table_mirrored_set(wd->resize_obj, rtl);
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_efl_ui_table_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_Table_Data *pd EINA_UNUSED)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
/* we can't issue the layout's theming code here, cause it assumes an
* unique edje object, always */
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_efl_ui_text_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_Text_Data *sd)
{
- Efl_Ui_Theme_Apply_Error theme_apply;
+ Eina_Error theme_apply;
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EINA_FALSE);
return edje_object_part_text_get(pd->text_obj, "efl.text");
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_efl_ui_textpath_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_Textpath_Data *pd)
{
- Efl_Ui_Theme_Apply_Error ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return EFL_UI_THEME_APPLY_ERROR_GENERIC;
{
}
-EAPI Efl_Ui_Theme_Apply_Error
+static void
+_elm_widget_theme_helper(Eina_Error err, Eina_Bool *err_default, Eina_Bool *err_generic)
+{
+ if (err == EFL_UI_THEME_APPLY_ERROR_DEFAULT)
+ *err_default = EINA_TRUE;
+ else if (err == EFL_UI_THEME_APPLY_ERROR_GENERIC)
+ *err_generic = EINA_TRUE;
+}
+
+EAPI Eina_Error
elm_widget_theme(Evas_Object *obj)
{
const Eina_List *l;
EINA_LIST_FOREACH(sd->subobjs, l, child)
if (_elm_widget_is(child))
- {
- switch (elm_widget_theme(child))
- {
- case EFL_UI_THEME_APPLY_ERROR_DEFAULT:
- err_default = EINA_TRUE;
- break;
- case EFL_UI_THEME_APPLY_ERROR_GENERIC:
- err_generic = EINA_TRUE;
- break;
- default: break;
- }
- }
+ _elm_widget_theme_helper(elm_widget_theme(child), &err_default, &err_generic);
if (sd->hover_obj)
- switch (elm_widget_theme(sd->hover_obj))
- {
- case EFL_UI_THEME_APPLY_ERROR_DEFAULT:
- err_default = EINA_TRUE;
- break;
- case EFL_UI_THEME_APPLY_ERROR_GENERIC:
- err_generic = EINA_TRUE;
- break;
- default: break;
- }
+ _elm_widget_theme_helper(elm_widget_theme(sd->hover_obj), &err_default, &err_generic);
EINA_LIST_FOREACH(sd->tooltips, l, tt)
elm_tooltip_theme(tt);
EINA_LIST_FOREACH(sd->cursors, l, cur)
elm_cursor_theme(cur);
- switch (efl_ui_widget_theme_apply(obj))
- {
- case EFL_UI_THEME_APPLY_ERROR_DEFAULT:
- err_default = EINA_TRUE;
- break;
- case EFL_UI_THEME_APPLY_ERROR_GENERIC:
- err_generic = EINA_TRUE;
- break;
- default: break;
- }
+ _elm_widget_theme_helper(efl_ui_widget_theme_apply(obj), &err_default, &err_generic);
if (err_generic) return EFL_UI_THEME_APPLY_ERROR_GENERIC;
if (err_default) return EFL_UI_THEME_APPLY_ERROR_DEFAULT;
return EFL_UI_THEME_APPLY_ERROR_NONE;
efl_ui_widget_theme_apply(obj);
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_efl_ui_widget_theme_apply(Eo *obj, Elm_Widget_Smart_Data *_pd EINA_UNUSED)
{
_elm_widget_mirrored_reload(obj);
return sd->theme;
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_efl_ui_widget_style_set(Eo *obj, Elm_Widget_Smart_Data *sd, const char *style)
{
if (!elm_widget_is_legacy(obj) && efl_finalized_get(obj))
return sd->child_drag_y_locked;
}
-EAPI Efl_Ui_Theme_Apply_Error
+EAPI Eina_Error
elm_widget_theme_object_set(Evas_Object *obj, Evas_Object *edj, const char *wname, const char *welement, const char *wstyle)
{
Elm_Widget_Smart_Data *sd = efl_data_scope_safe_get(obj, MY_CLASS);
* @param name An element name of sub object.
* @return Whether the style was successfully applied or not.
*/
-EAPI Efl_Ui_Theme_Apply_Error
+EAPI Eina_Error
elm_widget_element_update(Evas_Object *obj, Evas_Object *component, const char *name)
{
- Efl_Ui_Theme_Apply_Error ret = EFL_UI_THEME_APPLY_ERROR_NONE;
+ Eina_Error ret = EFL_UI_THEME_APPLY_ERROR_NONE;
Eina_Bool changed = EINA_FALSE;
const char *obj_group;
Eina_Stringshare *group;
]]
set @protected {
[[Can only be called during construction, before finalize.]]
- return: Efl.Ui.Theme_Apply_Error(2);
+ return: Eina.Error;
[[Whether the style was successfully applied or not, see
- the values of @Efl.Ui.Theme_Apply_Error for more information.]]
+ the values of Efl.Ui.Theme.Apply_Error for more information.]]
}
get {
[[Returns the current style of a widget.]]
Note: even widgets not based on layouts may override this method
to handle widget updates (scale, mirrored mode, etc...).
]]
- return: Efl.Ui.Theme_Apply_Error; [[Indicates success, and if the current
+ return: Eina.Error; [[Indicates success, and if the current
theme or default theme was used.]]
}
void *event_info);
static void
_elm_win_img_callbacks_del(Evas_Object *obj, Evas_Object *imgobj);
-static Efl_Ui_Theme_Apply_Error _elm_win_theme_internal(Eo *obj, Efl_Ui_Win_Data *sd);
+static Eina_Error _elm_win_theme_internal(Eo *obj, Efl_Ui_Win_Data *sd);
static void _elm_win_frame_add(Efl_Ui_Win_Data *sd, const char *element, const char *style);
static void _elm_win_frame_style_update(Efl_Ui_Win_Data *sd, Eina_Bool force_emit, Eina_Bool calc);
static inline void _elm_win_need_frame_adjust(Efl_Ui_Win_Data *sd, const char *engine);
return sd->focus_highlight.enabled;
}
-static Efl_Ui_Theme_Apply_Error
+static Eina_Error
_elm_win_theme_internal(Eo *obj, Efl_Ui_Win_Data *sd)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
Eina_Bool prev_alpha;
const char *s;
return int_ret;
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_efl_ui_win_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_Win_Data *sd)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
efl_ui_l10n_translation_update(sd->hover);
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_combobox_efl_ui_widget_theme_apply(Eo *obj, Elm_Combobox_Data *sd)
{
const char *style;
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
Eina_Bool mirrored;
char buf[128];
}
//FIXME: lost the content size when theme hook is called.
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_ctxpopup_efl_ui_widget_theme_apply(Eo *obj, Elm_Ctxpopup_Data *sd)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
return efl_model_property_set(model, property_name, eina_value_string_new(property_value));
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_fileselector_efl_ui_widget_theme_apply(Eo *obj, Elm_Fileselector_Data *sd)
{
const char *style;
const char *data;
char buf[1024];
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
};
#undef ELM_PRIV_FILESELECTOR_BUTTON_SIGNALS
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_fileselector_button_efl_ui_widget_theme_apply(Eo *obj, Elm_Fileselector_Button_Data *sd EINA_UNUSED)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
char buf[4096];
const char *style;
evas_object_size_hint_max_set(obj, -1, -1);
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_fileselector_entry_efl_ui_widget_theme_apply(Eo *obj, Elm_Fileselector_Entry_Data *sd)
{
const char *style;
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EFL_UI_THEME_APPLY_ERROR_GENERIC);
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
efl_ui_l10n_translation_update(efl_super(obj, MY_CLASS));
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_hoversel_efl_ui_widget_theme_apply(Eo *obj, Elm_Hoversel_Data *sd)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
Eina_List *l;
Elm_Object_Item *eo_item;
return strdup(buf);
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_multibuttonentry_efl_ui_widget_theme_apply(Eo *obj, Elm_Multibuttonentry_Data *sd)
{
const char *str;
Elm_Object_Item *eo_item;
double pad_scale;
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
edje_object_message_signal_process(elm_layout_edje_get(VIEW(nit)));
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_naviframe_efl_ui_widget_theme_apply(Eo *obj, Elm_Naviframe_Data *sd)
{
Elm_Naviframe_Item_Data *it;
elm_object_disabled_set(sl, elm_widget_disabled_get(obj));
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_player_efl_ui_widget_theme_apply(Eo *obj, Elm_Player_Data *sd)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
sd->theme_scroll = EINA_FALSE;
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_popup_efl_ui_widget_theme_apply(Eo *obj, Elm_Popup_Data *sd)
{
Elm_Popup_Item_Data *it;
(wd->resize_obj, "elm.drag_button_base", 1.0 - pos, 0.5);
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_actionslider_efl_ui_widget_theme_apply(Eo *obj, Elm_Actionslider_Data *sd EINA_UNUSED)
{
Eina_Bool mirrored;
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EFL_UI_THEME_APPLY_ERROR_GENERIC);
(obj, base, items, list_data_get, degree, direction, direction_item, weight);
}
//
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_box_efl_ui_widget_theme_apply(Eo *obj, Elm_Box_Data *sd EINA_UNUSED)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
}
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_calendar_efl_ui_widget_theme_apply(Eo *obj, Elm_Calendar_Data *sd)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
sd->cur.ampm = -1;
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_clock_efl_ui_widget_theme_apply(Eo *obj, Elm_Clock_Data *sd EINA_UNUSED)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
}
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_code_widget_efl_ui_widget_theme_apply(Eo *obj, Elm_Code_Widget_Data *pd)
{
if (efl_ui_widget_theme_apply(efl_cast(obj, EFL_UI_WIDGET_CLASS)) == EFL_UI_THEME_APPLY_ERROR_GENERIC)
}
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_colorselector_efl_ui_widget_theme_apply(Eo *obj, Elm_Colorselector_Data *sd)
{
int i;
unsigned int v_pad = DEFAULT_VER_PAD;
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EFL_UI_THEME_APPLY_ERROR_GENERIC);
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
}
// END
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_conformant_efl_ui_widget_theme_apply(Eo *obj, Elm_Conformant_Data *_pd EINA_UNUSED)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
ELM_DAYSELECTOR_MAX;
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_dayselector_efl_ui_widget_theme_apply(Eo *obj, Elm_Dayselector_Data *sd)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
Eina_List *l;
char buf[1024];
else sd->minh = -1;
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_diskselector_efl_ui_widget_theme_apply(Eo *obj, Elm_Diskselector_Data *sd)
{
Eina_List *l;
Elm_Diskselector_Item_Data *it;
Evas_Object *blank;
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
Evas *evas;
const char *style = elm_widget_style_get(obj);
/* we can't issue the layout's theming code here, cause it assumes an
* unique edje object, always */
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_entry_efl_ui_widget_theme_apply(Eo *obj, Elm_Entry_Data *sd)
{
const char *str;
const char *t;
const char *stl_user;
const char *style = elm_widget_style_get(obj);
- Efl_Ui_Theme_Apply_Error theme_apply;
+ Eina_Error theme_apply;
int cursor_pos;
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EFL_UI_THEME_APPLY_ERROR_GENERIC);
if (sd->scroll)
{
- Efl_Ui_Theme_Apply_Error err = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error err = EFL_UI_THEME_APPLY_ERROR_GENERIC;
efl_ui_mirrored_set(obj, efl_ui_mirrored_get(obj));
return eo_item;
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_flipselector_efl_ui_widget_theme_apply(Eo *obj, Elm_Flipselector_Data *sd)
{
const char *max_len;
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EFL_UI_THEME_APPLY_ERROR_GENERIC);
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
ELM_GENGRID_DATA_GET_FROM_ITEM(it, sd);
snprintf(buf, sizeof(buf), "item/%s", style ? style : "default");
- Efl_Ui_Theme_Apply_Error th_ret =
+ Eina_Error th_ret =
elm_widget_theme_object_set(WIDGET(it), view, "gengrid", buf,
elm_widget_style_get(WIDGET(it)));
if (th_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC)
}
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_gengrid_efl_ui_widget_theme_apply(Eo *obj, Elm_Gengrid_Data *sd EINA_UNUSED)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
"",style ? : "default");
}
- Efl_Ui_Theme_Apply_Error th_ret =
+ Eina_Error th_ret =
elm_widget_theme_object_set(WIDGET(it), view, "genlist", buf,
elm_widget_style_get(WIDGET(it)));
if (th_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC)
efl_ui_mirrored_set(obj, rtl);
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_genlist_efl_ui_widget_theme_apply(Eo *obj, Elm_Genlist_Data *sd)
{
Item_Block *itb;
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
Eina_List *l;
Elm_Gen_Item *it;
Evas *e;
evas_object_grid_mirrored_set(wd->resize_obj, rtl);
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_grid_efl_ui_widget_theme_apply(Eo *obj, void *sd EINA_UNUSED)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
}
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_hover_efl_ui_widget_theme_apply(Eo *obj, Elm_Hover_Data *sd)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
return 0;
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_icon_efl_ui_widget_theme_apply(Eo *obj, Elm_Icon_Data *sd)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
if (sd->stdicon)
_elm_theme_object_icon_set(obj, sd->stdicon, elm_widget_style_get(obj));
}
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_index_efl_ui_widget_theme_apply(Eo *obj, Elm_Index_Data *sd)
{
Evas_Coord minw = 0, minh = 0;
Elm_Object_Item *eo_item;
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EINA_FALSE);
edje_object_message_signal_process(wd->resize_obj);
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_label_efl_ui_widget_theme_apply(Eo *obj, Elm_Label_Data *sd)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EFL_UI_THEME_APPLY_ERROR_GENERIC);
}
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_list_efl_ui_widget_theme_apply(Eo *obj, Elm_List_Data *sd)
{
Elm_Object_Item *eo_it;
Eina_List *n;
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
return ECORE_CALLBACK_PASS_ON;
}
+EAPI Eina_Error EFL_UI_THEME_APPLY_ERROR_NONE = 0;
+EAPI Eina_Error EFL_UI_THEME_APPLY_ERROR_DEFAULT = 0;
+EAPI Eina_Error EFL_UI_THEME_APPLY_ERROR_GENERIC = 0;
+
+static void
+_efl_ui_theme_apply_error_init(void)
+{
+ if (EFL_UI_THEME_APPLY_ERROR_DEFAULT) return;
+ /* NONE should always be 0 */
+ EFL_UI_THEME_APPLY_ERROR_DEFAULT = eina_error_msg_static_register("Fallback to default style was enabled for this widget");
+ EFL_UI_THEME_APPLY_ERROR_GENERIC = eina_error_msg_static_register("An error occurred and no theme could be set for this widget");
+}
+
// This is necessary to keep backward compatibility
static const char *bcargv[] = { "exe" };
if (_efl_startup_time <= 0)
_efl_startup_time = _elm_startup_time;
_elm_startup_time = _efl_startup_time;
+ _efl_ui_theme_apply_error_init();
//TIZEN_ONLY(20160628): Add Performance log for cold booting
#ifdef ENABLE_TTRACE
#include "elm_map_pan.eo.c"
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_map_efl_ui_widget_theme_apply(Eo *obj, Elm_Map_Data *sd EINA_UNUSED)
{
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EFL_UI_THEME_APPLY_ERROR_GENERIC);
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
evas_object_size_hint_max_set(obj, maxw, maxh);
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_mapbuf_efl_ui_widget_theme_apply(Eo *obj, Elm_Mapbuf_Data *sd EINA_UNUSED)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
}
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_menu_efl_ui_widget_theme_apply(Eo *obj, Elm_Menu_Data *sd)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
Eina_List *l, *_l, *_ll, *ll = NULL;
Elm_Object_Item *eo_item;
}
//END
-static Efl_Ui_Theme_Apply_Error
+static Eina_Error
_notify_theme_apply(Evas_Object *obj)
{
const char *style = elm_widget_style_get(obj);
evas_object_geometry_set(obj, x, y, w, h);
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_notify_efl_ui_widget_theme_apply(Eo *obj, Elm_Notify_Data *sd)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
_access_obj_process(obj, EINA_TRUE);
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_panel_efl_ui_widget_theme_apply(Eo *obj, Elm_Panel_Data *sd)
{
const char *str;
Evas_Coord minw = 0, minh = 0;
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EFL_UI_THEME_APPLY_ERROR_GENERIC);
evas_object_size_hint_max_set(obj, maxw, maxh);
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_photo_efl_ui_widget_theme_apply(Eo *obj, Elm_Photo_Data *sd)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EINA_FALSE);
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
return EINA_TRUE;
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_plug_efl_ui_widget_theme_apply(Eo *obj, void *sd EINA_UNUSED)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
Ecore_X_Window _elm_ee_xwin_get(const Ecore_Evas *ee);
-Efl_Ui_Theme_Apply_Error _elm_theme_object_set(Evas_Object *parent,
+Eina_Error _elm_theme_object_set(Evas_Object *parent,
Evas_Object *o,
const char *clas,
const char *group,
Eina_Bool _elm_theme_object_icon_set(Evas_Object *o,
const char *group,
const char *style);
-Efl_Ui_Theme_Apply_Error _elm_theme_set(Elm_Theme *th,
+Eina_Error _elm_theme_set(Elm_Theme *th,
Evas_Object *o,
const char *clas,
const char *group,
_sizing_eval(obj);
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_route_efl_ui_widget_theme_apply(Eo *obj, Elm_Route_Data *sd EINA_UNUSED)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
efl_ui_mirrored_set(obj, mirrored);
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_scroller_efl_ui_widget_theme_apply(Eo *obj, Elm_Scroller_Data *sd EINA_UNUSED)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
}
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_segment_control_efl_ui_widget_theme_apply(Eo *obj, Elm_Segment_Control_Data *sd)
{
Eina_List *l;
Eina_Bool rtl;
Elm_Object_Item *eo_item;
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
#define MY_CLASS_NAME "Elm_Separator"
#define MY_CLASS_NAME_LEGACY "elm_separator"
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_separator_efl_ui_widget_theme_apply(Eo *obj, Elm_Separator_Data *sd EINA_UNUSED)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
if (sd->horizontal)
elm_widget_theme_element_set(obj, "horizontal");
return eina_strbuf_release(new_group);
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_slider_efl_ui_widget_theme_apply(Eo *obj, Elm_Slider_Data *sd)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EFL_UI_THEME_APPLY_ERROR_GENERIC);
EFL_UI_SLIDER_DATA_GET_OR_RETURN(obj, sd2, EFL_UI_THEME_APPLY_ERROR_GENERIC);
char *group;
efl_canvas_group_del(efl_super(obj, MY_CLASS));
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_spinner_efl_ui_widget_theme_apply(Eo *obj, Elm_Spinner_Data *sd)
{
ELM_WIDGET_DATA_GET_OR_RETURN(obj, wd, EFL_UI_THEME_APPLY_ERROR_GENERIC);
evas_object_table_mirrored_set(wd->resize_obj, rtl);
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_table_efl_ui_widget_theme_apply(Eo *obj, void *sd EINA_UNUSED)
{
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
return NULL;
}
-Efl_Ui_Theme_Apply_Error
+Eina_Error
_elm_theme_object_set(Evas_Object *parent, Evas_Object *o, const char *clas, const char *group, const char *style)
{
Elm_Theme *th = NULL;
return _elm_theme_icon_set(th, o, group, style);
}
-Efl_Ui_Theme_Apply_Error
+Eina_Error
_elm_theme_set(Elm_Theme *th, Evas_Object *o, const char *clas, const char *group, const char *style, Eina_Bool is_legacy)
{
Eina_File *file;
elm_widget_highlight_in_theme_set(obj, EINA_FALSE);
}
-EOLIAN static Efl_Ui_Theme_Apply_Error
+EOLIAN static Eina_Error
_elm_toolbar_efl_ui_widget_theme_apply(Eo *obj, Elm_Toolbar_Data *sd)
{
Elm_Toolbar_Item_Data *it;
if (sd->delete_me) return EFL_UI_THEME_APPLY_ERROR_NONE;
- Efl_Ui_Theme_Apply_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
+ Eina_Error int_ret = EFL_UI_THEME_APPLY_ERROR_GENERIC;
int_ret = efl_ui_widget_theme_apply(efl_super(obj, MY_CLASS));
if (int_ret == EFL_UI_THEME_APPLY_ERROR_GENERIC) return int_ret;
//
//
//
-EAPI Efl_Ui_Theme_Apply_Error elm_widget_theme(Evas_Object *obj);
+EAPI Eina_Error elm_widget_theme(Evas_Object *obj);
EAPI void elm_widget_theme_specific(Evas_Object *obj, Elm_Theme *th, Eina_Bool force);
EAPI void elm_widget_on_show_region_hook_set(Evas_Object *obj, void *data, Efl_Ui_Scrollable_On_Show_Region func, Eina_Free_Cb data_free);
EAPI Eina_Bool elm_widget_sub_object_parent_add(Evas_Object *sobj);
EAPI int elm_widget_scroll_freeze_get(const Evas_Object *obj);
EAPI void elm_widget_theme_set(Evas_Object *obj, Elm_Theme *th);
EAPI Elm_Theme *elm_widget_theme_get(const Evas_Object *obj);
-EAPI Efl_Ui_Theme_Apply_Error elm_widget_style_set(Evas_Object *obj, const char *style);
+EAPI Eina_Error elm_widget_style_set(Evas_Object *obj, const char *style);
EAPI const char *elm_widget_style_get(const Evas_Object *obj);
EAPI void elm_widget_type_set(Evas_Object *obj, const char *type);
EAPI const char *elm_widget_type_get(const Evas_Object *obj);
EAPI Efl_Ui_Scroll_Block elm_widget_scroll_lock_get(const Evas_Object *obj);
EAPI int elm_widget_scroll_child_locked_x_get(const Evas_Object *obj);
EAPI int elm_widget_scroll_child_locked_y_get(const Evas_Object *obj);
-EAPI Efl_Ui_Theme_Apply_Error elm_widget_theme_object_set(Evas_Object *obj, Evas_Object *edj, const char *wname, const char *welement, const char *wstyle);
+EAPI Eina_Error elm_widget_theme_object_set(Evas_Object *obj, Evas_Object *edj, const char *wname, const char *welement, const char *wstyle);
EAPI Eina_Bool elm_widget_type_check(const Evas_Object *obj, const char *type, const char *func);
EAPI Evas_Object *elm_widget_name_find(const Evas_Object *obj, const char *name, int recurse);
EAPI Eina_List *elm_widget_stringlist_get(const char *str);
EAPI const char *elm_widget_theme_element_get(const Evas_Object *obj);
EAPI Eina_Bool elm_widget_theme_style_set(Evas_Object *obj, const char *name);
EAPI const char *elm_widget_theme_style_get(const Evas_Object *obj);
+<<<<<<< HEAD
EAPI Efl_Ui_Theme_Apply_Result elm_widget_element_update(Evas_Object *obj, Evas_Object *component, const char *name);
//TIZEN_ONLY(20160726): add API elm_object_part_access_object_get
EAPI Evas_Object *elm_widget_part_access_object_get(const Evas_Object *obj, const char *part);
EAPI Eina_Bool _elm_widget_highlightable(Evas_Object *widget);
EAPI Eina_Bool _elm_widget_item_highlightable(Elm_Object_Item *item);
//
+=======
+EAPI Eina_Error elm_widget_element_update(Evas_Object *obj, Evas_Object *component, const char *name);
+>>>>>>> bb6caaa471... efl.ui: remove Efl.Ui.Theme_Apply_Error
/* debug function. don't use it unless you are tracking parenting issues */
EAPI void elm_widget_tree_dump(const Evas_Object *top);