[gnome-boxes/wip/less-actors: 1/2] notificationbar: API to display actual auth notification
- From: Zeeshan Ali Khattak <zeeshanak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes/wip/less-actors: 1/2] notificationbar: API to display actual auth notification
- Date: Sat, 8 Feb 2014 08:28:56 +0000 (UTC)
commit 0a49169a6b523698b8137dcb5f24a34bd93b79b6
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date: Fri Feb 7 14:36:52 2014 +0100
notificationbar: API to display actual auth notification
src/notificationbar.vala | 14 +++++++-------
src/ovirt-broker.vala | 2 +-
2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/src/notificationbar.vala b/src/notificationbar.vala
index c892905..89920d2 100644
--- a/src/notificationbar.vala
+++ b/src/notificationbar.vala
@@ -44,11 +44,11 @@ private class Boxes.Notificationbar: GLib.Object {
return display (message, MessageType.INFO, action_label, (owned) action_func, (owned) ignore_func,
timeout);
}
- public Gd.Notification display_for_authentication (string broker_name,
- owned AuthNotification.AuthFunc? auth_func,
- owned Notification.CancelFunc? cancel_func) {
+ public Gd.Notification display_for_optional_auth (string broker_name,
+ owned AuthNotification.AuthFunc? auth_func,
+ owned Notification.CancelFunc? cancel_func) {
Notification.OKFunc next_auth_step = () => {
- display_for_auth_next (broker_name, (owned) auth_func, (owned) cancel_func);
+ display_for_auth (broker_name, (owned) auth_func, (owned) cancel_func);
};
return display_for_action (_("Not connected to %s").printf (broker_name),
_("Sign In"),
@@ -56,9 +56,9 @@ private class Boxes.Notificationbar: GLib.Object {
(owned) cancel_func, -1);
}
- private Gd.Notification display_for_auth_next (string auth_string,
- owned AuthNotification.AuthFunc? auth_func,
- owned Notification.CancelFunc? cancel_func) {
+ public Gd.Notification display_for_auth (string auth_string,
+ owned AuthNotification.AuthFunc? auth_func,
+ owned Notification.CancelFunc? cancel_func) {
var notification = new Boxes.AuthNotification (auth_string, (owned) auth_func, (owned) cancel_func);
active_notifications.prepend (notification);
diff --git a/src/ovirt-broker.vala b/src/ovirt-broker.vala
index d66ac9e..2b5940b 100644
--- a/src/ovirt-broker.vala
+++ b/src/ovirt-broker.vala
@@ -55,7 +55,7 @@ private class Boxes.OvirtBroker : Boxes.Broker {
// finish, otherwise yield add_source() will never return
auth.unpause ();
};
- App.app.notificationbar.display_for_authentication ("oVirt broker", (owned) auth_cb, (owned)
cancel_cb);
+ App.app.notificationbar.display_for_optional_auth ("oVirt broker", (owned) auth_cb, (owned)
cancel_cb);
auth.pause ();
return false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]