From 8439641f9542c64a72abf8501e85f367a2656141 Mon Sep 17 00:00:00 2001 From: yggverse Date: Sun, 14 Apr 2024 22:33:37 +0300 Subject: [PATCH] allow multiple rows selection --- src/Entity/Tab/History.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Entity/Tab/History.php b/src/Entity/Tab/History.php index a677d7f7..852c6a02 100644 --- a/src/Entity/Tab/History.php +++ b/src/Entity/Tab/History.php @@ -186,8 +186,6 @@ class History ) ); - - // Init list storage $this->list = new \GtkListStore( \GObject::TYPE_STRING, @@ -199,6 +197,10 @@ class History $this->list ); + $this->treeview->get_selection()->set_mode( + \GtkSelectionMode::MULTIPLE + ); + // Compose body $this->body = new \GtkBox( \GtkOrientation::VERTICAL