static void _dispatch_view(struct ug_data *ugd);
static void _create_navigationbar(struct ug_data *ugd);
static Evas_Object *_create_layout(Evas_Object *parent, struct ug_data *ugd);
-static void _win_profile_changed_cb(void *data, Evas_Object *obj, void *event);
static void _layout_block_cb(ui_gadget_h ug, enum ug_mode mode, void *priv);
static void _result_block_cb(ui_gadget_h ug, service_h service, void *priv);
/*elm_theme_extension_add(ugd->theme, EV_BLOCK_THEME_PATH); //Use block theme*/
ugd->layout_main = _create_layout(parent, ugd);
- evas_object_smart_callback_add(ugd->win, "profile,changed", _win_profile_changed_cb, ugd);
_create_navigationbar(ugd);
ugd->base = ugd->layout_main;
elm_win_indicator_mode_set(ugd->win, ELM_WIN_INDICATOR_SHOW);
return base;
}
-static void _win_profile_changed_cb(void *data, Evas_Object *obj, void *event)
-{
- debug_log("");
- if (!data) {
- debug_log("data is NULL");
- return;
- }
-
- EmailSettingUGD *ugd = (EmailSettingUGD *)data;
-
- const char *profile = elm_config_profile_get();
- if (!g_strcmp0(profile, "desktop"))
- elm_layout_theme_set(ugd->layout_main, "layout", "application", "noindicator");
- else
- elm_layout_theme_set(ugd->layout_main, "layout", "application", "default");
-
- evas_object_size_hint_weight_set(ugd->layout_main, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- evas_object_show(ugd->layout_main);
-}
-
static void _layout_block_cb(ui_gadget_h ug, enum ug_mode mode, void *priv)
{
debug_log("");