aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/notification.vala4
-rw-r--r--src/warn-notification.vala3
2 files changed, 4 insertions, 3 deletions
diff --git a/src/notification.vala b/src/notification.vala
index e5e1fd2..b8bad30 100644
--- a/src/notification.vala
+++ b/src/notification.vala
@@ -41,6 +41,7 @@ public abstract class IndicatorSound.Notification: Object
protected void show_() {
try {
+ GLib.message("calling _notification.show");
_notification.show ();
message("after calling show, n.id is %d", (int)_notification.id);
visible = true;
@@ -66,8 +67,9 @@ public abstract class IndicatorSound.Notification: Object
protected bool notify_server_supports(string cap) {
if (_server_caps == null) {
- message("getting server caps");
+ GLib.message("getting server caps");
_server_caps = Notify.get_server_caps();
+ GLib.message("got server caps");
}
var ret = _server_caps.find_custom(cap, strcmp) != null;
diff --git a/src/warn-notification.vala b/src/warn-notification.vala
index 4f45a5c..fb5b613 100644
--- a/src/warn-notification.vala
+++ b/src/warn-notification.vala
@@ -47,11 +47,10 @@ public class IndicatorSound.WarnNotification: Notification
_notification.add_action ("ok", _("OK"), (n, a) => {
user_responded(Response.OK);
});
-
_notification.add_action ("cancel", _("Cancel"), (n, a) => {
user_responded(Response.CANCEL);
});
-
+ GLib.message("showing warning dialog");
show_();
return true;