[Xfce4-commits] <postler:master> Print configuration file errors to console
Christian Dywan
noreply at xfce.org
Sat Dec 11 20:08:04 CET 2010
Updating branch refs/heads/master
to af3e3418cab25ecf4c1bcd9bb7394ef0c099f7da (commit)
from 1f5e16d64afb9f3c6bc8b3c8339bc86326a7c061 (commit)
commit af3e3418cab25ecf4c1bcd9bb7394ef0c099f7da
Author: Christian Dywan <christian at twotoasts.de>
Date: Fri Dec 10 23:59:44 2010 +0100
Print configuration file errors to console
These are coming from the service now which should not
use any graphical dialogues.
postler/postler-accounts.vala | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/postler/postler-accounts.vala b/postler/postler-accounts.vala
index 77971bd..e4a215e 100644
--- a/postler/postler-accounts.vala
+++ b/postler/postler-accounts.vala
@@ -512,14 +512,8 @@ public class Postler.Accounts : GLib.Object {
throw new GLib.FileError.FAILED (_("Mail folder couldn't be created."));
Postler.App.execute_command (command);
} catch (GLib.Error error) {
- var error_dialog = new Gtk.MessageDialog (null, 0,
- Gtk.MessageType.ERROR, Gtk.ButtonsType.OK,
- _("Failed to generate configuration for type \"%s\"."),
+ GLib.warning (_("Failed to generate configuration for type \"%s\"."),
info.type.to_string ());
- error_dialog.format_secondary_text (error.message);
- error_dialog.response.connect ((dialog, response)
- => { dialog.destroy (); });
- error_dialog.show ();
}
}
}
More information about the Xfce4-commits
mailing list