59 lines
1.6 KiB
C
59 lines
1.6 KiB
C
#include <stdio.h>
|
|
#include <Elementary.h>
|
|
#include "../exclaim_config.h"
|
|
#include "etc.h"
|
|
#include "status.h"
|
|
|
|
void
|
|
explode_win_enable(Evas_Object* win);
|
|
|
|
EAPI_MAIN int
|
|
elm_main(int argc, char** argv)
|
|
{
|
|
elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
|
|
elm_app_compile_bin_dir_set(PACKAGE_BIN_DIR);
|
|
elm_app_compile_lib_dir_set(PACKAGE_LIB_DIR);
|
|
elm_app_compile_data_dir_set(PACKAGE_DATA_DIR);
|
|
elm_app_info_set(elm_main, "exclaim", "checkme");
|
|
|
|
Evas_Object* win = elm_win_util_standard_add("exclaim_root", "Exclaim");
|
|
E_BEGIN(win);
|
|
elm_win_icon_name_set(win, "email-unread");
|
|
elm_win_autodel_set(win, EINA_TRUE);
|
|
|
|
explode_win_enable(win);
|
|
|
|
Evas_Object* status_scr = E_SHOW(elm_scroller_add(win));
|
|
E_BEGIN(status_scr);
|
|
evas_object_fullsize(status_scr);
|
|
|
|
Evas_Object* status_content = E_SHOW(elm_box_add(status_scr));
|
|
E_BEGIN(status_content);
|
|
evas_object_fullsize(status_content);
|
|
elm_object_content_set(status_scr, status_content);
|
|
|
|
for (int i = 0; i < 30; ++i)
|
|
{
|
|
struct exc_status st_test = {
|
|
.title = "wow",
|
|
};
|
|
Evas_Object* status = E_SHOW(exc_status_add(status_content, st_test));
|
|
|
|
elm_box_pack_end(status_content, status);
|
|
}
|
|
Evas_Object* lol = E_SHOW(elm_label_add(status_content));
|
|
elm_object_text_set(lol, "sdfjkfhjkahgkljsghklfjghdsjkghsdf");
|
|
elm_box_pack_end(status_content, lol);
|
|
E_END(status_content);
|
|
E_END(status_scr);
|
|
|
|
evas_object_resize(win, ELM_SCALE_SIZE(700), ELM_SCALE_SIZE(300));
|
|
elm_win_resize_object_add(win, status_scr);
|
|
E_SHOW(win);
|
|
E_END(win);
|
|
|
|
elm_run();
|
|
return EXIT_SUCCESS;
|
|
}
|
|
ELM_MAIN()
|