return elm_widget_content_part_unset(obj, part);
}
-EAPI void
+EAPI Eina_Bool
elm_object_style_set(Evas_Object *obj,
const char *style)
{
- EINA_SAFETY_ON_NULL_RETURN(obj);
- elm_widget_style_set(obj, style);
+ EINA_SAFETY_ON_NULL_RETURN_VAL(obj, EINA_FALSE);
+ return elm_widget_style_set(obj, style);
}
EAPI const char *
*/
/**
- * Set the style to use by a widget
- *
- * Sets the style name that will define the appearance of a widget. Styles
- * vary from widget to widget and may also be defined by other themes
- * by means of extensions and overlays.
+ * Set the style to used by a given widget
*
* @param obj The Elementary widget to style
- * @param style The style name to use
+ * @param style The name of the style to use on it
+ * @return @c EINA_TRUE on success, @c EINA_FALSE otherwise
+ *
+ * This sets the style (by name) that will define the appearance of a
+ * widget. Styles vary from widget to widget and may also be defined
+ * by other themes by means of extensions and overlays.
*
* @see elm_theme_extension_add()
* @see elm_theme_extension_del()
*
* @ingroup Styles
*/
-EAPI void elm_object_style_set(Evas_Object *obj, const char *style);
+EAPI Eina_Bool elm_object_style_set(Evas_Object *obj, const char *style);
/**
* Get the style used by the widget
sd->callback_del_func = func;
}
-EAPI void
+EAPI Eina_Bool
elm_widget_theme(Evas_Object *obj)
{
const Eina_List *l;
Elm_Tooltip *tt;
Elm_Cursor *cur;
- API_ENTRY return;
+ API_ENTRY return EINA_FALSE;
EINA_LIST_FOREACH(sd->subobjs, l, child) elm_widget_theme(child);
if (sd->resize_obj) elm_widget_theme(sd->resize_obj);
if (sd->hover_obj) elm_widget_theme(sd->hover_obj);
EINA_LIST_FOREACH(sd->tooltips, l, tt) elm_tooltip_theme(tt);
EINA_LIST_FOREACH(sd->cursors, l, cur) elm_cursor_theme(cur);
if (sd->theme_func) sd->theme_func(obj);
+
+ return EINA_TRUE;
}
EAPI void
return sd->theme;
}
-EAPI void
+EAPI Eina_Bool
elm_widget_style_set(Evas_Object *obj,
const char *style)
{
- API_ENTRY return;
+ API_ENTRY return EINA_FALSE;
if (eina_stringshare_replace(&sd->style, style))
- elm_widget_theme(obj);
+ return elm_widget_theme(obj);
+
+ return EINA_TRUE;
}
EAPI const char *
EAPI void elm_widget_signal_emit_hook_set(Evas_Object *obj, void (*func)(Evas_Object *obj, const char *emission, const char *source));
EAPI void elm_widget_signal_callback_add_hook_set(Evas_Object *obj, void (*func)(Evas_Object *obj, const char *emission, const char *source, Edje_Signal_Cb func_cb, void *data));
EAPI void elm_widget_signal_callback_del_hook_set(Evas_Object *obj, void (*func)(Evas_Object *obj, const char *emission, const char *source, Edje_Signal_Cb func_cb, void *data));
-EAPI void elm_widget_theme(Evas_Object *obj);
+EAPI Eina_Bool 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_translate(Evas_Object *obj);
EAPI void elm_widget_focus_next_hook_set(Evas_Object *obj, Eina_Bool (*func)(const Evas_Object *obj, Elm_Focus_Direction dir, Evas_Object **next));
EAPI void elm_widget_mirrored_automatic_set(Evas_Object *obj, Eina_Bool automatic);
EAPI void elm_widget_theme_set(Evas_Object *obj, Elm_Theme *th);
EAPI Elm_Theme *elm_widget_theme_get(const Evas_Object *obj);
-EAPI void elm_widget_style_set(Evas_Object *obj, const char *style);
+EAPI Eina_Bool 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);