elm_multibuttonentry: change theme_set API to provide full widget theming
authorVitalii Vorobiov <vi.vorobiov@samsung.com>
Thu, 23 Apr 2015 02:05:31 +0000 (11:05 +0900)
committerChunEon Park <hermet@hermet.pe.kr>
Thu, 23 Apr 2015 02:05:31 +0000 (11:05 +0900)
Summary:
While setting theme currently changes style and theme to all button and
whole multibuttonentry object, it doesn't change few other parts of this object.
Part are, for examples, "guidetext", "label" and "closedbutton".

Fixing this sad mistake leads to be able to create different styles for such
wonderful widget.

@fix

Reviewers: cedric, seoz, raster, reutskiy.v.v, Hermet

Reviewed By: Hermet

Subscribers: NikaWhite

Differential Revision: https://phab.enlightenment.org/D2407

src/lib/elc_multibuttonentry.c

index 797008a..1300c8b 100644 (file)
@@ -86,6 +86,16 @@ _elm_multibuttonentry_elm_widget_theme_apply(Eo *obj, Elm_Multibuttonentry_Data
         elm_object_scale_set(VIEW(item), elm_widget_scale_get(obj) * elm_config_scale_get());
      }
 
+   elm_widget_theme_object_set
+      (obj, sd->label, "multibuttonentry", "label",
+       elm_widget_style_get(obj));
+   elm_widget_theme_object_set
+      (obj, sd->end, "multibuttonentry", "closedbutton",
+       elm_widget_style_get(obj));
+   elm_widget_theme_object_set
+      (obj,sd->guide_text, "multibuttonentry", "guidetext",
+       elm_widget_style_get(obj));
+
    elm_layout_sizing_eval(obj);
 
    return EINA_TRUE;