forked from enlightenment/efl
parent
6026896d03
commit
82cf8ef9ff
|
@ -243,6 +243,19 @@ _after_bt_clicked(void *data, Evas_Object *obj __UNUSED__, void *event_info __UN
|
||||||
NULL);
|
NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
_delete_bt_clicked(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||||
|
{
|
||||||
|
Evas_Object *grid = data;
|
||||||
|
Eina_List *l, *l2, *l3;
|
||||||
|
Elm_Gengrid_Item *it;
|
||||||
|
|
||||||
|
l = elm_gengrid_selected_items_get(grid);
|
||||||
|
if (!l) return;
|
||||||
|
EINA_LIST_FOREACH_SAFE(l, l2, l3, it)
|
||||||
|
elm_gengrid_item_del(it);
|
||||||
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
_prepend_bt_clicked(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
_prepend_bt_clicked(void *data, Evas_Object *obj __UNUSED__, void *event_info __UNUSED__)
|
||||||
{
|
{
|
||||||
|
@ -338,6 +351,12 @@ test_gengrid2(void *data __UNUSED__, Evas_Object *obj __UNUSED__, void *event_in
|
||||||
elm_box_pack_end(hbx, bt);
|
elm_box_pack_end(hbx, bt);
|
||||||
evas_object_show(bt);
|
evas_object_show(bt);
|
||||||
|
|
||||||
|
bt = elm_button_add(win);
|
||||||
|
elm_object_text_set(bt, "Delete");
|
||||||
|
evas_object_smart_callback_add(bt, "clicked", _delete_bt_clicked, grid);
|
||||||
|
elm_box_pack_end(hbx, bt);
|
||||||
|
evas_object_show(bt);
|
||||||
|
|
||||||
bt = elm_spinner_add(win);
|
bt = elm_spinner_add(win);
|
||||||
elm_spinner_min_max_set(bt, 10, 1024);
|
elm_spinner_min_max_set(bt, 10, 1024);
|
||||||
elm_spinner_value_set(bt, 150);
|
elm_spinner_value_set(bt, 150);
|
||||||
|
|
Loading…
Reference in New Issue