[meld] Make Save As dialog titles clearer (bgo#699058)
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] Make Save As dialog titles clearer (bgo#699058)
- Date: Sun, 28 Apr 2013 03:05:40 +0000 (UTC)
commit 45a8ceebda28b3e68c9ed8abfacf08b62c1cf224
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Apr 28 07:57:20 2013 +1000
Make Save As dialog titles clearer (bgo#699058)
meld/filediff.py | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index 30c4767..36555a6 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -1515,12 +1515,17 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
return False
return True
- def save_file(self, pane, saveas=0):
+ def save_file(self, pane, saveas=False):
buf = self.textbuffer[pane]
bufdata = buf.data
if saveas or not (bufdata.filename or bufdata.savefile) \
or not bufdata.writable:
- prompt = _("Choose a name for buffer %i.") % (pane + 1)
+ if pane == 0:
+ prompt = _("Save Left Pane As")
+ elif pane == 1 and self.num_panes == 3:
+ prompt = _("Save Middle Pane As")
+ else:
+ prompt = _("Save Right Pane As")
filename = self._get_filename_for_saving(prompt)
if filename:
bufdata.filename = bufdata.label = os.path.abspath(filename)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]