[meld/VersionControlRework: 86/123] vcview: Set up selection mode in the UI file
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld/VersionControlRework: 86/123] vcview: Set up selection mode in the UI file
- Date: Sun, 19 Apr 2015 20:13:13 +0000 (UTC)
commit 5361a685c4a02b89128ad08e58d4bdfecaa8daeb
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sat Apr 11 08:23:59 2015 +1000
vcview: Set up selection mode in the UI file
data/ui/vcview.ui | 4 +++-
meld/vcview.py | 5 ++---
2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/data/ui/vcview.ui b/data/ui/vcview.ui
index c75d3ad..71d1cf8 100644
--- a/data/ui/vcview.ui
+++ b/data/ui/vcview.ui
@@ -508,7 +508,9 @@
<signal name="row-activated" handler="on_row_activated" swapped="no"/>
<signal name="popup-menu" handler="on_treeview_popup_menu" swapped="no"/>
<child internal-child="selection">
- <object class="GtkTreeSelection" id="treeview-selection1"/>
+ <object class="GtkTreeSelection" id="treeview-selection">
+ <property name="mode">multiple</property>
+ </object>
</child>
</object>
</child>
diff --git a/meld/vcview.py b/meld/vcview.py
index a15ef09..b105600 100644
--- a/meld/vcview.py
+++ b/meld/vcview.py
@@ -190,9 +190,8 @@ class VcView(melddoc.MeldDoc, gnomeglade.Component):
self.widget.connect("style-updated", self.model.on_style_updated)
self.model.on_style_updated(self.widget)
self.treeview.set_model(self.model)
- selection = self.treeview.get_selection()
- selection.set_mode(Gtk.SelectionMode.MULTIPLE)
- selection.connect("changed", self.on_treeview_selection_changed)
+ self.treeview.get_selection().connect(
+ "changed", self.on_treeview_selection_changed)
self.treeview.set_headers_visible(1)
self.treeview.set_search_equal_func(
self.model.treeview_search_cb, None)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]