added another test for "big" tooltips, showcases obvious bug where tooltip is cut off when it is larger than the window's canvas
SVN revision: 61617
This commit is contained in:
parent
f2a67f5efb
commit
105c0bc038
|
@ -121,6 +121,19 @@ _tt_item_icon(void *data __UNUSED__,
|
||||||
return ic;
|
return ic;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static Evas_Object *
|
||||||
|
_tt_item_icon2(void *data __UNUSED__,
|
||||||
|
Evas_Object *obj,
|
||||||
|
void *item __UNUSED__)
|
||||||
|
{
|
||||||
|
Evas_Object *ic = elm_icon_add(obj);
|
||||||
|
char buf[PATH_MAX];
|
||||||
|
snprintf(buf, sizeof(buf), "%s/images/logo.png", PACKAGE_DATA_DIR);
|
||||||
|
elm_icon_file_set(ic, buf, NULL);
|
||||||
|
elm_icon_scale_set(ic, 0, 0);
|
||||||
|
return ic;
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_tt_item_icon_del(void *data,
|
_tt_item_icon_del(void *data,
|
||||||
Evas_Object *obj __UNUSED__,
|
Evas_Object *obj __UNUSED__,
|
||||||
|
@ -432,6 +445,8 @@ test_tooltip(void *data __UNUSED__,
|
||||||
elm_list_item_tooltip_text_set(li, "Something useful here?");
|
elm_list_item_tooltip_text_set(li, "Something useful here?");
|
||||||
li = elm_list_item_append(lst, "Icon Tooltip", NULL, NULL, NULL, NULL);
|
li = elm_list_item_append(lst, "Icon Tooltip", NULL, NULL, NULL, NULL);
|
||||||
elm_list_item_tooltip_content_cb_set(li, _tt_item_icon, NULL, NULL);
|
elm_list_item_tooltip_content_cb_set(li, _tt_item_icon, NULL, NULL);
|
||||||
|
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);
|
||||||
evas_object_size_hint_weight_set(lst, EVAS_HINT_EXPAND,
|
evas_object_size_hint_weight_set(lst, EVAS_HINT_EXPAND,
|
||||||
EVAS_HINT_EXPAND);
|
EVAS_HINT_EXPAND);
|
||||||
evas_object_size_hint_align_set(lst, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
evas_object_size_hint_align_set(lst, EVAS_HINT_FILL, EVAS_HINT_FILL);
|
||||||
|
|
Loading…
Reference in New Issue