From de4493a64a59e6905c6f3f02902783daa86c051e Mon Sep 17 00:00:00 2001 From: charles kerr Date: Mon, 21 Dec 2015 12:25:11 -0600 Subject: add tracer GLib.message() calls --- src/notification.vala | 4 +++- src/warn-notification.vala | 3 +-- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'src') 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; -- cgit v1.2.3