aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcharles kerr <charlesk@canonical.com>2015-12-21 12:25:11 -0600
committercharles kerr <charlesk@canonical.com>2015-12-21 12:25:11 -0600
commitde4493a64a59e6905c6f3f02902783daa86c051e (patch)
tree47d32c413a29b6fef160bf13f7fc81b348c182cc
parentd1b0d523e3ef744247187378ae3f1655d8622029 (diff)
downloadayatana-indicator-sound-de4493a64a59e6905c6f3f02902783daa86c051e.tar.gz
ayatana-indicator-sound-de4493a64a59e6905c6f3f02902783daa86c051e.tar.bz2
ayatana-indicator-sound-de4493a64a59e6905c6f3f02902783daa86c051e.zip
add tracer GLib.message() calls
-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;