[meld] Use MsgAreas for generic file read error display
- From: Kai Willadsen <kaiw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [meld] Use MsgAreas for generic file read error display
- Date: Sun, 1 Nov 2009 20:40:11 +0000 (UTC)
commit 85da9ac77f5d714cdddd96bef96ab2397750c62c
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Aug 30 10:39:28 2009 +1000
Use MsgAreas for generic file read error display
meld/filediff.py | 10 +++-------
1 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index 0eca96a..6331ec0 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -589,13 +589,9 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
pane = i)
tasks.append(task)
except (IOError, LookupError), e:
- buf.set_text("\n")
- misc.run_dialog(
- "%s\n\n%s\n%s" % (
- _("Could not read from '%s'") % f,
- _("The error was:"),
- str(e)),
- parent = self)
+ buf.delete(*buf.get_bounds())
+ add_dismissable_msg(i, gtk.STOCK_DIALOG_ERROR,
+ _("Could not read file"), str(e))
else:
panetext[i] = buf.get_text(*buf.get_bounds())
yield _("[%s] Reading files") % self.label_text
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]