aboutsummaryrefslogtreecommitdiff
path: root/atom_inspector_ui.c
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2015-04-15 00:45:55 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2015-04-15 00:45:55 +0200
commitb11277d047651c917d0d7bb9a86528e694e0e1b6 (patch)
treec1521a1597a4b34db203f241eab9573ff149d64c /atom_inspector_ui.c
parent0a38267c1df2babae121dd46d2cb2d24e702d52f (diff)
downloadsherlock.lv2-b11277d047651c917d0d7bb9a86528e694e0e1b6.tar.xz
scroll to most recent event by default.
Diffstat (limited to 'atom_inspector_ui.c')
-rw-r--r--atom_inspector_ui.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/atom_inspector_ui.c b/atom_inspector_ui.c
index 1e87a8e..8f3425b 100644
--- a/atom_inspector_ui.c
+++ b/atom_inspector_ui.c
@@ -48,10 +48,6 @@ struct _UI {
LV2_Atom_Forge forge;
- int w, h;
- Ecore_Evas *ee;
- Evas_Object *parent;
- Evas_Object *bg;
Evas_Object *vbox;
Evas_Object *list;
Evas_Object *clear;
@@ -667,6 +663,9 @@ port_event(LV2UI_Handle handle, uint32_t i, uint32_t size, uint32_t urid,
itm = elm_genlist_item_append(ui->list, ui->itc_sherlock, ev, NULL,
type, NULL, NULL);
+
+ // scroll to last item
+ elm_genlist_item_show(itm, ELM_GENLIST_ITEM_SCROLLTO_MIDDLE);
}
}
}