forked from enlightenment/efl
new tooltip test for seriously large images
SVN revision: 61740
This commit is contained in:
parent
54f1e32c17
commit
26ccd20393
|
@ -3,6 +3,7 @@ MAINTAINERCLEANFILES = Makefile.in
|
|||
|
||||
filesdir = $(datadir)/elementary/images
|
||||
files_DATA = \
|
||||
insanely_huge_test_image.jpg \
|
||||
panel_01.jpg \
|
||||
plant_01.jpg \
|
||||
pol_shadow.png \
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 1.2 MiB |
|
@ -136,6 +136,20 @@ _tt_item_icon2(void *data __UNUSED__,
|
|||
return ic;
|
||||
}
|
||||
|
||||
static Evas_Object *
|
||||
_tt_item_icon3(void *data __UNUSED__,
|
||||
Evas_Object *obj __UNUSED__,
|
||||
Evas_Object *tt,
|
||||
void *item __UNUSED__)
|
||||
{
|
||||
Evas_Object *ic = elm_icon_add(tt);
|
||||
char buf[PATH_MAX];
|
||||
snprintf(buf, sizeof(buf), "%s/images/insanely_huge_test_image.jpg", PACKAGE_DATA_DIR);
|
||||
elm_icon_file_set(ic, buf, NULL);
|
||||
elm_icon_scale_set(ic, 0, 0);
|
||||
return ic;
|
||||
}
|
||||
|
||||
static void
|
||||
_tt_item_icon_del(void *data,
|
||||
Evas_Object *obj __UNUSED__,
|
||||
|
@ -452,6 +466,9 @@ test_tooltip(void *data __UNUSED__,
|
|||
li = elm_list_item_append(lst, "Big Icon Tooltip", NULL, NULL, NULL, NULL);
|
||||
elm_list_item_tooltip_content_cb_set(li, _tt_item_icon2, NULL, NULL);
|
||||
elm_list_item_tooltip_size_restrict_disable(li, EINA_TRUE);
|
||||
li = elm_list_item_append(lst, "Insanely Big Icon Tooltip", NULL, NULL, NULL, NULL);
|
||||
elm_list_item_tooltip_content_cb_set(li, _tt_item_icon3, NULL, NULL);
|
||||
elm_list_item_tooltip_size_restrict_disable(li, EINA_TRUE);
|
||||
evas_object_size_hint_weight_set(lst, EVAS_HINT_EXPAND,
|
||||
EVAS_HINT_EXPAND);
|
||||
evas_object_size_hint_align_set(lst, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||
|
|
Loading…
Reference in New Issue