[meld] Fix Copy All sensitivity
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] Fix Copy All sensitivity
- Date: Fri, 14 May 2010 22:42:25 +0000 (UTC)
commit 7ffeb0f4e6e22f64fddee8d8efa611d1815f7912
Author: Piotr Piastucki <leech miranda gmail com>
Date: Tue May 11 13:13:29 2010 +0200
Fix Copy All sensitivity
Sensitivity of Copy All actions should depend on editable flag of the
respective text view.
meld/filediff.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index 246e054..c5415a6 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -587,8 +587,8 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
self.findbar.hide()
def popup_in_pane(self, pane):
- self.actiongroup.get_action("CopyAllLeft").set_sensitive(pane > 0)
- self.actiongroup.get_action("CopyAllRight").set_sensitive(pane+1 < self.num_panes)
+ self.actiongroup.get_action("CopyAllLeft").set_sensitive(pane > 0 and self.textview[pane - 1].get_editable())
+ self.actiongroup.get_action("CopyAllRight").set_sensitive(pane + 1 < self.num_panes and self.textview[pane + 1].get_editable())
self.popup_menu.popup(None, None, None, 3, gtk.get_current_event_time())
def on_scrolledwindow__size_allocate(self, scrolledwindow, allocation):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]