Widget_Data *wd = elm_widget_data_get(obj);
if (!wd) return;
- _elm_theme_set(wd->base, "searchbar", "base", elm_widget_style_get(obj));
+ /* Temp */
+ Elm_Theme *th = NULL;
+ th = elm_theme_new();
+
+
+ _elm_theme_set(th, wd->base, "searchbar", "base", elm_widget_style_get(obj));
if (wd->eb)
edje_object_part_swallow(wd->base, "btn_text", wd->eb);
wd->base = edje_object_add(e);
if (wd->base == NULL) return NULL;
- _elm_theme_set(wd->base, "searchbar", "base", "default");
+
+ /* Temp */
+ Elm_Theme *th = NULL;
+ th = elm_theme_new();
+
+ _elm_theme_set(th, wd->base, "searchbar", "base", "default");
// evas_object_size_hint_weight_set(wd->base, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
// evas_object_size_hint_align_set(wd->base, EVAS_HINT_FILL, EVAS_HINT_FILL);
int ms = 0;
int scale = 0;
+ /* Temp */
+ Elm_Theme *th = NULL;
+ th = elm_theme_new();
+
if (!wd) return;
scale = (elm_widget_scale_get(obj) * _elm_config->scale);
edje_object_scale_set(wd->scr, scale);
edje_object_scale_set(it->base, scale);
- _elm_theme_set(it->base, "toolbar2", "item", style);
+
+ _elm_theme_set(th, it->base, "toolbar2", "item", style);
if (it->icon)
{
it->data = data;
it->base = edje_object_add(evas_object_evas_get(obj));
- _elm_theme_set(it->base, "toolbar2", "item", elm_widget_style_get(obj));
+ /* Temp */
+ Elm_Theme *th = NULL;
+ th = elm_theme_new();
+
+ _elm_theme_set(th, it->base, "toolbar2", "item", elm_widget_style_get(obj));
evas_object_event_callback_add(it->icon, EVAS_CALLBACK_MOUSE_DOWN, press_down_cb, it);
evas_object_event_callback_add(it->icon, EVAS_CALLBACK_MOUSE_UP, press_up_cb, it);