summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2017-09-06 22:21:48 +0200
committerDave Davenport <qball@gmpclient.org>2017-09-06 22:21:48 +0200
commitae452271ac49e9fc25b2ada02531860d526cebdc (patch)
tree1d58381c9e9e9f93eed286f77f5b31f86d2927ee
parent0824a1e48c45a6bb0d94eb56840dedb30b7c1822 (diff)
Fix sizing of listview rows.
-rw-r--r--source/widgets/listview.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source/widgets/listview.c b/source/widgets/listview.c
index 60bd5fee..415ccd5a 100644
--- a/source/widgets/listview.c
+++ b/source/widgets/listview.c
@@ -533,10 +533,8 @@ listview *listview_create ( const char *name, listview_update_callback cb, void
lv->scrollbar->widget.parent = WIDGET ( lv );
// Calculate height of an element.
//
- char *tb_name = g_strjoin ( ".", lv->listview_name, "element", NULL );
- textbox *tb = textbox_create ( WIDGET_TYPE_LISTVIEW_ELEMENT, tb_name, 0, NORMAL, "", 0, 0 );
+ textbox *tb = textbox_create ( WIDGET_TYPE_LISTVIEW_ELEMENT, "element", 0, NORMAL, "", 0, 0 );
lv->element_height = textbox_get_estimated_height ( tb, lv->eh );
- g_free ( tb_name );
widget_free ( WIDGET ( tb ) );
lv->callback = cb;