[meld] Use MsgAreas for file read error display
- From: Kai Willadsen <kaiw src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [meld] Use MsgAreas for file read error display
- Date: Sun, 1 Nov 2009 20:40:21 +0000 (UTC)
commit 452b27b0ff794e480a7fe0d782a7f926392ae5b2
Author: Kai Willadsen <kai willadsen gmail com>
Date: Sun Aug 30 10:42:27 2009 +1000
Use MsgAreas for file read error display
meld/filediff.py | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/meld/filediff.py b/meld/filediff.py
index 03f61a2..051d004 100644
--- a/meld/filediff.py
+++ b/meld/filediff.py
@@ -620,12 +620,8 @@ class FileDiff(melddoc.MeldDoc, gnomeglade.Component):
(t.filename, try_codecs))
tasks.remove(t)
except IOError, ioerr:
- misc.run_dialog(
- "%s\n\n%s\n%s" % (
- _("Could not read from '%s'") % t.filename,
- _("The error was:"),
- str(ioerr)),
- parent = self)
+ add_dismissable_msg(t.pane, gtk.STOCK_DIALOG_ERROR,
+ _("Could not read file"), str(ioerr))
tasks.remove(t)
else:
if len(nextbit):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]