diff options
author | charles kerr <charlesk@canonical.com> | 2015-12-31 11:19:07 -0600 |
---|---|---|
committer | charles kerr <charlesk@canonical.com> | 2015-12-31 11:19:07 -0600 |
commit | fe7c32942f923e56dfc757f6666151ddcb694f43 (patch) | |
tree | 7077ec1d609d3f4cd1e3f9ac2765e8730fac9f37 /src/warn-notification.vala | |
parent | df6953f55bdbc91c8a77b7ccf539973a2a0d43fa (diff) | |
download | ayatana-indicator-sound-fe7c32942f923e56dfc757f6666151ddcb694f43.tar.gz ayatana-indicator-sound-fe7c32942f923e56dfc757f6666151ddcb694f43.tar.bz2 ayatana-indicator-sound-fe7c32942f923e56dfc757f6666151ddcb694f43.zip |
copyediting: whitespace
Diffstat (limited to 'src/warn-notification.vala')
-rw-r--r-- | src/warn-notification.vala | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/warn-notification.vala b/src/warn-notification.vala index 9175bb6..17129aa 100644 --- a/src/warn-notification.vala +++ b/src/warn-notification.vala @@ -24,32 +24,33 @@ public class IndicatorSound.WarnNotification: Notification OK } - public signal void user_responded (WarnNotification.Response response); + public signal void user_responded (Response response); protected override Notify.Notification create_notification () { - var n = new Notify.Notification(_("Volume"), - _("High volume can damage your hearing."), - "audio-volume-high"); + var n = new Notify.Notification ( + _("Volume"), + _("High volume can damage your hearing."), + "audio-volume-high"); n.set_hint ("x-canonical-non-shaped-icon", "true"); n.set_hint ("x-canonical-snap-decisions", "true"); n.set_hint ("x-canonical-private-affirmative-tint", "true"); - n.closed.connect((n) => { - n.clear_actions(); + n.closed.connect ((n) => { + n.clear_actions (); }); return n; } public bool show () { - if (!notify_server_supports("actions")) + if (!notify_server_supports ("actions")) return false; - _notification.clear_actions(); + _notification.clear_actions (); _notification.add_action ("ok", _("OK"), (n, a) => { - user_responded(Response.OK); + user_responded (Response.OK); }); _notification.add_action ("cancel", _("Cancel"), (n, a) => { - user_responded(Response.CANCEL); + user_responded (Response.CANCEL); }); show_notification(); |