[gnome-boxes] notificationbar: cancel() -> dismiss_all()
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] notificationbar: cancel() -> dismiss_all()
- Date: Wed, 23 Mar 2016 13:45:14 +0000 (UTC)
commit 2a32fe6dbd51d7f17375f084960fc5f38032a308
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Sat Mar 19 18:12:04 2016 +0000
notificationbar: cancel() -> dismiss_all()
Just a more appropriate name for this method since it dismisses
notifications.
https://bugzilla.gnome.org/show_bug.cgi?id=761479
src/app.vala | 2 +-
src/notificationbar.vala | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/app.vala b/src/app.vala
index 96ab658..de39397 100644
--- a/src/app.vala
+++ b/src/app.vala
@@ -279,7 +279,7 @@ private class Boxes.App: Gtk.Application {
base.shutdown ();
foreach (var window in windows) {
- window.notificationbar.cancel ();
+ window.notificationbar.dismiss_all ();
window.wizard_window.wizard.cleanup ();
}
suspend_machines ();
diff --git a/src/notificationbar.vala b/src/notificationbar.vala
index 8cf0e24..c66fe66 100644
--- a/src/notificationbar.vala
+++ b/src/notificationbar.vala
@@ -74,7 +74,7 @@ private class Boxes.Notificationbar: Gtk.Grid {
return display (message, MessageType.ERROR, null, null, null, timeout);
}
- public void cancel () {
+ public void dismiss_all () {
// We destroy all active notifications, which will cause them to be dismissed
while (active_notifications != null) {
active_notifications.data.destroy ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]