コード例 #1
0
static void _item_up_cb(void *data, Evas_Object *obj, const char* emission, const char* source)
{
	Evas_Object *icon_image;
	Evas_Object *item;

	item = evas_object_data_get(obj, "item");
	ret_if(NULL == item);

	_D("ITEM: mouse up event callback is invoked for %p", item);
	PRINT_APPFWK();

	icon_image = evas_object_data_get(item, "icon_image");
	evas_object_color_set(icon_image, 255, 255, 255, 255);

	ret_if(NULL == item_event_info.pressed_item);

	if (item_event_info.pressed_item == item) {
		bool item_enable_long_press;

		item_enable_long_press = (bool) evas_object_data_get(item, "item_enable_long_press");
		_D("Not Edit Mode");

		if (mouse_is_scrolling()) {
			return;
		}

		item_launch(item);
	}

	item_event_info.pressed_item = NULL;
}
コード例 #2
0
ファイル: item_event.c プロジェクト: won81/menu-screen
static void _uninstall_up_cb(void *item, Evas_Object *obj, const char* emission, const char* source)
{
	Evas_Object *win;

	ret_if(mouse_is_scrolling());

	win = menu_screen_get_win();
	ret_if(NULL == win);

	_D("Uninstall button is up");
	obj = evas_object_data_get(obj, "evas_object");
	ret_if(NULL == obj);
	ret_if(NULL == evas_object_data_get(obj, "removing"));

	evas_object_data_del(obj, "removing");
}