[gnome-boxes] Add error popup on box connection errors
- From: Christophe Fergeau <teuf src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Add error popup on box connection errors
- Date: Wed, 19 Sep 2012 07:58:37 +0000 (UTC)
commit d308a8e5423e58f1c1f3122c2180960da0c08bfc
Author: Christophe Fergeau <cfergeau redhat com>
Date: Tue Sep 18 11:57:30 2012 +0200
Add error popup on box connection errors
This commit adds a new string and we are in string freeze break,
so approval is needed to get this change in. However, the patch
series is still a good improvement even without the added string,
so I'm splitting this out to be able to commit the rest of the series
(thanks Alex for the suggestion!).
However, without this error message, Boxes starting to connect to a box
and then giving up can be quite confusing, so adding this message
is a worthwhile user-friendliness improvement.
https://bugzilla.gnome.org/show_bug.cgi?id=684224
src/app.vala | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index 776af62..7c58d0c 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -691,7 +691,8 @@ private class Boxes.App: Boxes.UI {
machine.connect_display.end (res);
} catch (GLib.Error e) {
ui_state = UIState.COLLECTION;
- warning ("connect display failed: %s", e.message);
+ App.app.notificationbar.display_error (_("Connection to '%s' failed").printf (machine.name));
+ debug ("connect display failed: %s", e.message);
}
});
ui_state = UIState.CREDS;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]