aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-04-19 10:52:19 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2016-04-19 10:52:19 +0200
commit733ee87180cd392ecacc54e8a9f8d10730be80c9 (patch)
tree98b7b355f508f2cb88c4f8bf14fbcbd88fc0ce5b
parent90894c81df63c60666f3fdd6d9d3ad341deebab0 (diff)
downloadsherlock.lv2-733ee87180cd392ecacc54e8a9f8d10730be80c9.tar.xz
fix osc genlist insertion.
-rw-r--r--atom_inspector_eo.c1
-rw-r--r--midi_inspector_eo.c1
-rw-r--r--osc_inspector_eo.c9
3 files changed, 4 insertions, 7 deletions
diff --git a/atom_inspector_eo.c b/atom_inspector_eo.c
index 457f545..d73ea92 100644
--- a/atom_inspector_eo.c
+++ b/atom_inspector_eo.c
@@ -751,7 +751,6 @@ port_event(LV2UI_Handle handle, uint32_t i, uint32_t size, uint32_t urid,
//elm_genlist_item_show(itm, ELM_GENLIST_ITEM_SCROLLTO_MIDDLE);
}
}
-
if(seq->atom.size > sizeof(LV2_Atom_Sequence_Body))
_clear_update(ui, n); // only update if there where any events
diff --git a/midi_inspector_eo.c b/midi_inspector_eo.c
index 4ca99c3..18183ee 100644
--- a/midi_inspector_eo.c
+++ b/midi_inspector_eo.c
@@ -844,7 +844,6 @@ port_event(LV2UI_Handle handle, uint32_t i, uint32_t size, uint32_t urid,
Elm_Object_Item *itm2 = elm_genlist_item_append(ui->list, ui->itc_midi,
ev, itm, ELM_GENLIST_ITEM_NONE, NULL, NULL);
elm_genlist_item_select_mode_set(itm2, ELM_OBJECT_SELECT_MODE_DEFAULT);
- elm_genlist_item_expanded_set(itm2, EINA_FALSE);
n++;
// scroll to last item
diff --git a/osc_inspector_eo.c b/osc_inspector_eo.c
index 5526293..6550c5b 100644
--- a/osc_inspector_eo.c
+++ b/osc_inspector_eo.c
@@ -908,6 +908,10 @@ port_event(LV2UI_Handle handle, uint32_t i, uint32_t size, uint32_t urid,
return;
}
+ itm = elm_genlist_item_append(ui->list, ui->itc_group,
+ pos, NULL, ELM_GENLIST_ITEM_GROUP, NULL, NULL);
+ elm_genlist_item_select_mode_set(itm, ELM_OBJECT_SELECT_MODE_NONE);
+
LV2_ATOM_SEQUENCE_FOREACH(seq, elmnt)
{
size_t len = sizeof(LV2_Atom_Event) + elmnt->body.size;
@@ -917,7 +921,6 @@ port_event(LV2UI_Handle handle, uint32_t i, uint32_t size, uint32_t urid,
memcpy(ev, elmnt, len);
- const LV2_Atom_Object *obj = (const LV2_Atom_Object *)&ev->body;
Elm_Object_Item *itm2 = elm_genlist_item_append(ui->list, ui->itc_packet,
ev, itm, ELM_GENLIST_ITEM_TREE, NULL, NULL);
elm_genlist_item_select_mode_set(itm2, ELM_OBJECT_SELECT_MODE_DEFAULT);
@@ -927,10 +930,6 @@ port_event(LV2UI_Handle handle, uint32_t i, uint32_t size, uint32_t urid,
// scroll to last item
//elm_genlist_item_show(itm, ELM_GENLIST_ITEM_SCROLLTO_MIDDLE);
}
-
- itm = elm_genlist_item_append(ui->list, ui->itc_group,
- pos, NULL, ELM_GENLIST_ITEM_GROUP, NULL, NULL);
- elm_genlist_item_select_mode_set(itm, ELM_OBJECT_SELECT_MODE_NONE);
}
if(seq->atom.size > sizeof(LV2_Atom_Sequence_Body))