aboutsummaryrefslogtreecommitdiff
path: root/src/notification.vala
diff options
context:
space:
mode:
authorcharles kerr <charlesk@canonical.com>2015-12-31 11:19:07 -0600
committercharles kerr <charlesk@canonical.com>2015-12-31 11:19:07 -0600
commitfe7c32942f923e56dfc757f6666151ddcb694f43 (patch)
tree7077ec1d609d3f4cd1e3f9ac2765e8730fac9f37 /src/notification.vala
parentdf6953f55bdbc91c8a77b7ccf539973a2a0d43fa (diff)
downloadayatana-indicator-sound-fe7c32942f923e56dfc757f6666151ddcb694f43.tar.gz
ayatana-indicator-sound-fe7c32942f923e56dfc757f6666151ddcb694f43.tar.bz2
ayatana-indicator-sound-fe7c32942f923e56dfc757f6666151ddcb694f43.zip
copyediting: whitespace
Diffstat (limited to 'src/notification.vala')
-rw-r--r--src/notification.vala19
1 files changed, 10 insertions, 9 deletions
diff --git a/src/notification.vala b/src/notification.vala
index 0fa91ef..3a3060f 100644
--- a/src/notification.vala
+++ b/src/notification.vala
@@ -20,24 +20,25 @@
public abstract class IndicatorSound.Notification: Object
{
public Notification () {
- BusWatcher.watch_namespace (GLib.BusType.SESSION,
- "org.freedesktop.Notifications",
- () => { debug("Notifications name appeared"); },
- () => { debug("Notifications name vanshed"); _server_caps = null; });
+ BusWatcher.watch_namespace (
+ GLib.BusType.SESSION,
+ "org.freedesktop.Notifications",
+ () => { debug ("Notifications name appeared"); },
+ () => { debug ("Notifications name vanshed"); _server_caps = null; });
_notification = create_notification ();
}
- public void close() {
+ public void close () {
var n = _notification;
return_if_fail (n != null);
if (n.id != 0) {
try {
- n.close();
+ n.close ();
} catch (GLib.Error e) {
- GLib.warning("Unable to close notification: %s", e.message);
+ GLib.warning ("Unable to close notification: %s", e.message);
}
}
}
@@ -58,9 +59,9 @@ public abstract class IndicatorSound.Notification: Object
protected bool notify_server_supports (string cap) {
if (_server_caps == null)
- _server_caps = Notify.get_server_caps();
+ _server_caps = Notify.get_server_caps ();
- return _server_caps.find_custom(cap, strcmp) != null;
+ return _server_caps.find_custom (cap, strcmp) != null;
}
protected Notify.Notification _notification = null;