[gnome-boxes] Cancel notificationbar actions before exiting
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Cancel notificationbar actions before exiting
- Date: Fri, 16 Mar 2012 01:55:29 +0000 (UTC)
commit 6671e4b92ea9db86c9764169de51c460c8642e07
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Fri Mar 16 03:07:15 2012 +0200
Cancel notificationbar actions before exiting
https://bugzilla.gnome.org/show_bug.cgi?id=672153
src/app.vala | 1 +
src/notificationbar.vala | 4 ++++
2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index 743c341..94e2b26 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -447,6 +447,7 @@ private class Boxes.App: Boxes.UI {
}
public bool quit () {
+ notificationbar.cancel ();
save_window_geometry ();
window.destroy ();
diff --git a/src/notificationbar.vala b/src/notificationbar.vala
index 44bd0ba..0b36e8f 100644
--- a/src/notificationbar.vala
+++ b/src/notificationbar.vala
@@ -33,6 +33,10 @@ private class Boxes.Notificationbar: GLib.Object {
display (message, MessageType.ERROR);
}
+ public void cancel () {
+ info_bar.response (ResponseType.CANCEL);
+ }
+
private void display (string message,
MessageType message_type,
string? ok_label = null,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]