From 15d181e4194ef35c58e18f31d5731bdf0d70a714 Mon Sep 17 00:00:00 2001 From: discomfitor Date: Thu, 29 Sep 2011 05:07:50 +0000 Subject: [PATCH] should probably apply theme hook to toolbar items at some point I guess git-svn-id: https://svn.enlightenment.org/svn/e/trunk/elementary@63650 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/elm_toolbar.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lib/elm_toolbar.c b/src/lib/elm_toolbar.c index 47194dd..380db29 100644 --- a/src/lib/elm_toolbar.c +++ b/src/lib/elm_toolbar.c @@ -793,10 +793,13 @@ elm_toolbar_item_append(Evas_Object *obj, const char *icon, const char *label, E Elm_Toolbar_Item *it = _item_new(obj, icon, label, func, data); if (!it) return NULL; + double scale = (elm_widget_scale_get(obj) * _elm_config->scale); wd->items = eina_inlist_append(wd->items, EINA_INLIST_GET(it)); evas_object_box_append(wd->bx, VIEW(it)); evas_object_show(VIEW(it)); + + _theme_hook_item(obj, it, scale, wd->icon_size); _sizing_eval(obj); return it; @@ -1020,10 +1023,12 @@ elm_toolbar_item_prepend(Evas_Object *obj, const char *icon, const char *label, Elm_Toolbar_Item *it = _item_new(obj, icon, label, func, data); if (!it) return NULL; + double scale = (elm_widget_scale_get(obj) * _elm_config->scale); wd->items = eina_inlist_prepend(wd->items, EINA_INLIST_GET(it)); evas_object_box_prepend(wd->bx, VIEW(it)); evas_object_show(VIEW(it)); + _theme_hook_item(obj, it, scale, wd->icon_size); _sizing_eval(obj); return it; @@ -1039,11 +1044,13 @@ elm_toolbar_item_insert_before(Evas_Object *obj, Elm_Toolbar_Item *before, const Elm_Toolbar_Item *it = _item_new(obj, icon, label, func, data); if (!it) return NULL; + double scale = (elm_widget_scale_get(obj) * _elm_config->scale); wd->items = eina_inlist_prepend_relative(wd->items, EINA_INLIST_GET(it), EINA_INLIST_GET(before)); evas_object_box_insert_before(wd->bx, VIEW(it), VIEW(before)); evas_object_show(VIEW(it)); + _theme_hook_item(obj, it, scale, wd->icon_size); _sizing_eval(obj); return it; @@ -1059,11 +1066,13 @@ elm_toolbar_item_insert_after(Evas_Object *obj, Elm_Toolbar_Item *after, const c Elm_Toolbar_Item *it = _item_new(obj, icon, label, func, data); if (!it) return NULL; + double scale = (elm_widget_scale_get(obj) * _elm_config->scale); wd->items = eina_inlist_append_relative(wd->items, EINA_INLIST_GET(it), EINA_INLIST_GET(after)); evas_object_box_insert_after(wd->bx, VIEW(it), VIEW(after)); evas_object_show(VIEW(it)); + _theme_hook_item(obj, it, scale, wd->icon_size); _sizing_eval(obj); return it; -- 2.7.4