From 7fba949435801caa49702dd3db297e31bd2ff34e Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Mon, 30 Mar 2009 08:32:25 +0000 Subject: [PATCH] fix scale for toolbar SVN revision: 39797 --- src/lib/Makefile.am | 1 + src/lib/elm_toolbar.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am index 958d583..1a81c7b 100644 --- a/src/lib/Makefile.am +++ b/src/lib/Makefile.am @@ -6,6 +6,7 @@ AM_CPPFLAGS = \ -I$(top_builddir) \ -I$(top_srcdir) \ -I$(top_srcdir)/src/lib \ +-I$(top_builddir)/src/lib \ -DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \ @ELEMENTARY_CFLAGS@ \ @ELEMENTARY_X_CFLAGS@ \ diff --git a/src/lib/elm_toolbar.c b/src/lib/elm_toolbar.c index 8dd5693..7382364 100644 --- a/src/lib/elm_toolbar.c +++ b/src/lib/elm_toolbar.c @@ -84,8 +84,10 @@ _theme_hook(Evas_Object *obj) const Eina_List *l; Elm_Toolbar_Item *it; Evas_Coord mw, mh; + edje_object_scale_set(wd->scr, elm_widget_scale_get(obj) * _elm_config->scale); EINA_LIST_FOREACH(wd->items, l, it) { + edje_object_scale_set(it->base, elm_widget_scale_get(obj) * _elm_config->scale); if (it->selected) edje_object_signal_emit(it->base, "elm,state,selected", "elm"); _elm_theme_set(it->base, "toolbar", "item", "default"); -- 2.7.4