} \
while (0)
-static Evas_Object *main_win = NULL;
-
static int quiet = 0;
static int interactive = 1;
const Eina_List *ll;
tc_data = calloc(1, sizeof(*tc_data));
+ if (!tc_data) continue;
+
tc_data->name = eina_stringshare_add(etc->name);
tc_data->desc = eina_stringshare_add(etc->desc);
}
static void
-status_win(void)
+win_create(void)
{
- Evas_Object *win, *bg, *bx0;
-
- win = elm_win_add(NULL, "main", ELM_WIN_BASIC);
- main_win = win;
- elm_win_title_set(win, "Elementary Config");
+ Evas_Object *win, *bx0;
+ win = elm_win_util_standard_add("main", "Elementary Config");
ecore_event_handler_add(ELM_EVENT_CONFIG_ALL_CHANGED, _config_all_changed,
win);
-
evas_object_smart_callback_add(win, "delete,request", config_exit, NULL);
- bg = elm_bg_add(win);
- evas_object_size_hint_weight_set(bg, 1.0, 1.0);
- elm_win_resize_object_add(win, bg);
- evas_object_show(bg);
bx0 = elm_box_add(win);
evas_object_size_hint_weight_set(bx0, 1.0, 1.0);
#ifdef ELM_EFREET
elm_need_efreet();
#endif
- status_win(); /* create main window */
+ win_create(); /* create main window */
if (!interactive)
ecore_timer_add(2.0, _exit_timer, NULL);
}