summaryrefslogtreecommitdiff
path: root/src/bin/elementary/test_ctxpopup.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bin/elementary/test_ctxpopup.c')
-rw-r--r--src/bin/elementary/test_ctxpopup.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/bin/elementary/test_ctxpopup.c b/src/bin/elementary/test_ctxpopup.c
index 6be16a50f1..9fc3de3d39 100644
--- a/src/bin/elementary/test_ctxpopup.c
+++ b/src/bin/elementary/test_ctxpopup.c
@@ -327,15 +327,16 @@ _list_item_cb7(void *data EINA_UNUSED, Evas_Object *obj, void *event_info EINA_U
327{ 327{
328 Evas_Object *ctxpopup; 328 Evas_Object *ctxpopup;
329 Evas_Coord x,y; 329 Evas_Coord x,y;
330 Elm_Object_Item *item;
330 331
331 if (list_mouse_down > 0) return; 332 if (list_mouse_down > 0) return;
332 ctxpopup = elm_ctxpopup_add(obj); 333 ctxpopup = elm_ctxpopup_add(obj);
333 evas_object_smart_callback_add(ctxpopup, "dismissed", _dismissed, NULL); 334 evas_object_smart_callback_add(ctxpopup, "dismissed", _dismissed, NULL);
334 evas_object_smart_callback_add(ctxpopup, "geometry,update", _geometry_update, NULL); 335 evas_object_smart_callback_add(ctxpopup, "geometry,update", _geometry_update, NULL);
335 336
336 elm_ctxpopup_item_append(ctxpopup, "Disable this item", NULL, _ctxpopup_item_disable_cb, ctxpopup); 337 item = elm_ctxpopup_item_prepend(ctxpopup, "Disable this item", NULL, _ctxpopup_item_disable_cb, ctxpopup);
337 elm_ctxpopup_item_append(ctxpopup, "Delete this ctxpopup", NULL, _ctxpopup_item_delete_cb, ctxpopup); 338 elm_ctxpopup_item_insert_before(ctxpopup, item, "Delete this ctxpopup", NULL, _ctxpopup_item_delete_cb, ctxpopup);
338 elm_ctxpopup_item_append(ctxpopup, "Another item", NULL, _ctxpopup_item_cb, NULL); 339 elm_ctxpopup_item_insert_after(ctxpopup, item, "Another item", NULL, _ctxpopup_item_cb, NULL);
339 340
340 evas_pointer_canvas_xy_get(evas_object_evas_get(obj), &x, &y); 341 evas_pointer_canvas_xy_get(evas_object_evas_get(obj), &x, &y);
341 evas_object_size_hint_max_set(ctxpopup, 240, 240); 342 evas_object_size_hint_max_set(ctxpopup, 240, 240);