From 9a8bc8f7e5b8f44076297689adfa698929a77f2b Mon Sep 17 00:00:00 2001 From: Christopher Lam Date: Sat, 17 Sep 2022 14:17:50 +0800 Subject: [PATCH] [assistant-stock-transaction] disallow selection in summary table ... because selection hides the red color from last commit. There's no action attached to selection in the treeview. It can be disabled. --- gnucash/gnome/assistant-stock-transaction.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gnucash/gnome/assistant-stock-transaction.cpp b/gnucash/gnome/assistant-stock-transaction.cpp index 09f283d3a4..bca3653d94 100644 --- a/gnucash/gnome/assistant-stock-transaction.cpp +++ b/gnucash/gnome/assistant-stock-transaction.cpp @@ -1236,6 +1236,8 @@ get_treeview (GtkBuilder *builder, const gchar *treeview_label) G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING); gtk_tree_view_set_model(view, GTK_TREE_MODEL(store)); + gtk_tree_selection_set_mode (gtk_tree_view_get_selection (view), + GTK_SELECTION_NONE); g_object_unref(store); auto renderer = gtk_cell_renderer_text_new();