diff options
author | charles kerr <charlesk@canonical.com> | 2015-12-29 13:06:58 -0600 |
---|---|---|
committer | charles kerr <charlesk@canonical.com> | 2015-12-29 13:06:58 -0600 |
commit | 902abad6836c6de2411d7514f36a106eee9444ed (patch) | |
tree | a0ae4438affaf781196f444869cfa24354fd49eb /src/warn-notification.vala | |
parent | f2fc1297ac47b5885ba3b875b9a4e188f12d68a2 (diff) | |
download | ayatana-indicator-sound-902abad6836c6de2411d7514f36a106eee9444ed.tar.gz ayatana-indicator-sound-902abad6836c6de2411d7514f36a106eee9444ed.tar.bz2 ayatana-indicator-sound-902abad6836c6de2411d7514f36a106eee9444ed.zip |
copyediting: use vala whitespace style in new code
Diffstat (limited to 'src/warn-notification.vala')
-rw-r--r-- | src/warn-notification.vala | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/warn-notification.vala b/src/warn-notification.vala index 53f5140..4e66e02 100644 --- a/src/warn-notification.vala +++ b/src/warn-notification.vala @@ -24,10 +24,12 @@ public class IndicatorSound.WarnNotification: Notification OK } - public signal void user_responded(WarnNotification.Response response); + public signal void user_responded (WarnNotification.Response response); - protected override Notify.Notification create_notification() { - var n = new Notify.Notification(_("Volume"), _("High volume can damage your hearing."), "audio-volume-high"); + protected override Notify.Notification create_notification () { + 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"); @@ -37,7 +39,7 @@ public class IndicatorSound.WarnNotification: Notification return n; } - public bool show() { + public bool show () { if (!notify_server_supports("actions")) return false; @@ -50,7 +52,7 @@ public class IndicatorSound.WarnNotification: Notification user_responded(Response.CANCEL); }); GLib.message("showing warning dialog"); - show_.begin(); + show_notification(); return true; } |