aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/elementary/elm_widget.c
diff options
context:
space:
mode:
authorSungtaek Hong <sth253.hong@samsung.com>2017-11-14 19:59:42 +0900
committerSungtaek Hong <sth253.hong@samsung.com>2017-12-08 15:57:26 +0900
commitdd4467505ea29d6120e5e7d467d76836a6630ff4 (patch)
treeaeb0cc91f72e33d732a655ee1f6b80383b99cf9f /src/lib/elementary/elm_widget.c
parentefl_ui_widget: add new internal EAPI for new group name (diff)
downloadefl-dd4467505ea29d6120e5e7d467d76836a6630ff4.tar.gz
efl_ui_widget: find new edc resource for efl_ui_widgets
new eo widgets(efl_ui_ prefix) finds new edc group in data/elementary/themes/edc/efl/*.edc. New group name is "klass/group:style" and "base" group name and "default" style name can be omitted. for now, separator for style is ':' but needs to be decided.
Diffstat (limited to 'src/lib/elementary/elm_widget.c')
-rw-r--r--src/lib/elementary/elm_widget.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_widget.c b/src/lib/elementary/elm_widget.c
index 89386b22c6..45163c806e 100644
--- a/src/lib/elementary/elm_widget.c
+++ b/src/lib/elementary/elm_widget.c
@@ -3016,6 +3016,10 @@ elm_widget_scroll_child_locked_y_get(const Eo *obj)
EOLIAN static Efl_Ui_Theme_Apply
_elm_widget_theme_object_set(Eo *obj, Elm_Widget_Smart_Data *sd, Evas_Object *edj, const char *wname, const char *welement, const char *wstyle)
{
+ if (eina_streq(welement, "base"))
+ welement = NULL;
+ if (eina_streq(wstyle, "default"))
+ wstyle = NULL;
Efl_Ui_Theme_Apply ret = _elm_theme_object_set(obj, edj, wname, welement, wstyle);
if (!ret)
{
@@ -3613,6 +3617,9 @@ EAPI Eina_Bool
elm_widget_theme_element_set(Evas_Object *obj, const char *name)
{
ELM_WIDGET_DATA_GET_OR_RETURN(obj, pd, EINA_FALSE);
+ if (eina_streq(name, "base"))
+ name = NULL;
+
return eina_stringshare_replace(&(pd->group), name);
}
@@ -3643,6 +3650,9 @@ EAPI Eina_Bool
elm_widget_theme_style_set(Evas_Object *obj, const char *name)
{
ELM_WIDGET_DATA_GET_OR_RETURN(obj, pd, EINA_FALSE);
+ if (eina_streq(name, "default"))
+ name = NULL;
+
return eina_stringshare_replace(&(pd->style), name);
}