-#include <Elementary.h>
#include "test.h"
#include <Elementary_Cursor.h>
#ifdef HAVE_CONFIG_H
# include "elementary_config.h"
#endif
+#include <Elementary.h>
#ifndef ELM_LIB_QUICKLAUNCH
struct _api_data
{
set_api_state(api_data *api)
{
const Eina_List *disks = elm_box_children_get(api->box);
- if(!eina_list_count(disks))
+ if (!eina_list_count(disks))
return;
switch(api->state)
void
test_diskselector(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
{
- Evas_Object *win, *bg, *bx, *disk, *ic, *bxx, *bt;
+ Evas_Object *win, *bx, *disk, *ic, *bxx, *bt;
Elm_Object_Item *ds_it;
char buf[PATH_MAX];
api_data *api = calloc(1, sizeof(api_data));
};
char date[3];
- win = elm_win_add(NULL, "diskselector", ELM_WIN_BASIC);
- elm_win_title_set(win, "Disk Selector");
+ win = elm_win_util_standard_add("diskselector", "Disk Selector");
elm_win_autodel_set(win, EINA_TRUE);
evas_object_event_callback_add(win, EVAS_CALLBACK_FREE, _cleanup_cb, api);
- bg = elm_bg_add(win);
- elm_win_resize_object_add(win, bg);
- evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
- evas_object_size_hint_align_set(bg, EVAS_HINT_FILL, EVAS_HINT_FILL);
- evas_object_show(bg);
-
bxx = elm_box_add(win);
elm_win_resize_object_add(win, bxx);
evas_object_size_hint_weight_set(bxx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);