Example #1
0
static Ret applist_on_item_clicked(void* ctx, void* obj)
{
	FtkIconViewItem* item = obj;
	AppInfo* info = item->user_data;

	ftk_app_run(info->app, 0, NULL);

	ftk_logd("%s: %s: user_data=%d\n", __func__, item->text, (int)item->user_data);

	return RET_OK;
}
Example #2
0
File: main.c Project: caicha/ftk
Ret ftk_main(int argc, char* argv[])
#endif
{
#ifdef HAS_MAIN
    ftk_init(argc, argv);
#endif
    ftk_app_run(ftk_app_calc_create(), argc, argv);
#ifdef HAS_MAIN
    ftk_run();
#endif

    return RET_OK;
}
Example #3
0
Ret ftk_main(int argc, char* argv[])
#endif
{
	FtkApp* app = ftk_app_music_create();

#ifdef HAS_MAIN
	ftk_init(argc, argv);
#endif

	ftk_app_run(app, argc, argv);

#ifdef HAS_MAIN
	ftk_run();
#endif

	return RET_OK;
}
Example #4
0
File: main.c Project: htbegin/pyftk
Ret ftk_main(int argc, char* argv[])
#endif
{
	FtkApp* app = ftk_app_file_browser_create();

#ifdef HAS_MAIN
	ftk_init(argc, argv);
#endif

	ftk_app_run(ftk_app_file_browser_create(), argc, argv);

#ifdef HAS_MAIN
	ftk_run();
#endif

	return RET_OK;
}