[meld] Fix popup return and remove now-unused _get_selected_paths()
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] Fix popup return and remove now-unused _get_selected_paths()
- Date: Fri, 9 Dec 2011 20:22:06 +0000 (UTC)
commit 9ec2714ad3eee430fb589143afd314530351b6fd
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Dec 4 11:51:30 2011 +1000
Fix popup return and remove now-unused _get_selected_paths()
meld/vcview.py | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/meld/vcview.py b/meld/vcview.py
index 22c466e..f5355e8 100644
--- a/meld/vcview.py
+++ b/meld/vcview.py
@@ -416,8 +416,8 @@ class VcView(melddoc.MeldDoc, gnomeglade.Component):
def on_button_press_event(self, text, event):
if event.button == 3:
self.popup_menu.popup(None, None, None, event.button, event.time)
- return len(self._get_selected_paths()) != 1
- return 0
+ return True
+ return False
def on_button_flatten_toggled(self, button):
self.treeview_column_location.set_visible(self.actiongroup.get_action("VcFlatten").get_active())
@@ -425,9 +425,6 @@ class VcView(melddoc.MeldDoc, gnomeglade.Component):
def on_button_filter_toggled(self, button):
self.refresh()
- def _get_selected_paths(self):
- return self.treeview.get_selection().get_selected_rows()[1]
-
def _get_selected_files(self):
sel = []
def gather(model, path, it):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]