swallow usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
Evas_Object* main_edje = edje_object_add(main_canvas);
evas_object_name_set(main_edje, "main_edje");
edje_object_file_set(main_edje, "/home/dottedmag/openinkpot/oi-src/madshelf/themes/main_window.edj",
"main_window");
Evas_Object* contents = choicebox_new(main_canvas,
"/usr/share/echoicebox/echoicebox.edj",
"full", contents_item_handler,
contents_draw_item_handler,
contents_page_handler, &state);
evas_object_name_set(contents, "contents");
edje_object_part_swallow(main_edje, "contents", contents);