# HG changeset patch # User Olaf Wintermann # Date 1736095299 -3600 # Node ID bf7084544cb1e794f1b4de89b6b7f2bc2116d001 # Parent 7b1d715e5c1121fc4e9411fe14ed34e9ad9fb6e5 fix missing selection init in gtk3 listview diff -r 7b1d715e5c11 -r bf7084544cb1 ui/gtk/list.c --- a/ui/gtk/list.c Sun Jan 05 17:31:53 2025 +0100 +++ b/ui/gtk/list.c Sun Jan 05 17:41:39 2025 +0100 @@ -204,7 +204,7 @@ UIWIDGET ui_listview_create(UiObject *obj, UiListArgs args) { UiObject* current = uic_current_obj(obj); - // to simplify things and share code with ui_tableview_create, we also + // to simplify things and share code with ui_table_create, we also // use a UiModel for the listview UiModel *model = ui_model(obj->ctx, UI_STRING, "", -1); model->getvalue = args.getvalue ? args.getvalue : ui_strmodel_getvalue; @@ -720,6 +720,8 @@ listview->widget = view; listview->var = var; listview->model = model; + listview->selection.count = 0; + listview->selection.rows = NULL; g_signal_connect( view, "destroy",