diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-07-23 19:12:14 -0500 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-07-23 19:12:14 -0500 |
commit | e94fa94e3d8d3d7a9630d3e6fa94b78525ae4345 (patch) | |
tree | 9f8a59af5851f895c1d680805e513475fc1d1835 | |
parent | 5235e6046a6a1c924cd2d39edbef0fd8de2a21f8 (diff) | |
download | ayatana-indicator-datetime-e94fa94e3d8d3d7a9630d3e6fa94b78525ae4345.tar.gz ayatana-indicator-datetime-e94fa94e3d8d3d7a9630d3e6fa94b78525ae4345.tar.bz2 ayatana-indicator-datetime-e94fa94e3d8d3d7a9630d3e6fa94b78525ae4345.zip |
remove tracer g_messages() that were used during development
-rw-r--r-- | src/snap.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/snap.cpp b/src/snap.cpp index cf9cbd8..5971c68 100644 --- a/src/snap.cpp +++ b/src/snap.cpp @@ -453,11 +453,9 @@ private: { auto self = static_cast<Popup*>(gself); - g_message ("%s response is '%s'", G_STRFUNC, g_variant_print (args, true)); - g_clear_pointer (&self->m_awake_cookie, g_free); g_variant_get (args, "(s)", &self->m_awake_cookie); - g_message ("m_awake_cookie is now '%s'", self->m_awake_cookie); + g_debug ("m_awake_cookie is now '%s'", self->m_awake_cookie); g_variant_unref (args); } @@ -483,11 +481,9 @@ private: { auto self = static_cast<Popup*>(gself); - g_message ("%s response is '%s'", G_STRFUNC, g_variant_print (args, true)); - self->m_screen_cookie = NO_SCREEN_COOKIE; g_variant_get (args, "(i)", &self->m_screen_cookie); - g_message ("m_screen_cookie is now '%d'", self->m_screen_cookie); + g_debug ("m_screen_cookie is now '%d'", self->m_screen_cookie); g_variant_unref (args); } @@ -499,7 +495,6 @@ private: if (m_awake_cookie != nullptr) { -g_message ("%s calling clearSysState %s", G_STRFUNC, m_awake_cookie); g_dbus_connection_call (m_system_bus, "com.canonical.powerd", "/com/canonical/powerd", @@ -523,7 +518,6 @@ g_message ("%s calling clearSysState %s", G_STRFUNC, m_awake_cookie); if (m_screen_cookie != NO_SCREEN_COOKIE) { -g_message ("%s calling removeDisplayOnRequest %d", G_STRFUNC, (int)m_screen_cookie); g_dbus_connection_call (m_system_bus, "com.canonical.Unity.Screen", "/com/canonical/Unity/Screen", @@ -650,8 +644,8 @@ void Snap::operator()(const Appointment& appointment, dismiss, popup](Popup::Response response){ - // we can't delete the Popup inside its response() signal handler, - // so push that to an idle func + // we can't delete the Popup inside its response() signal handler + // because core::signal deadlocks, so push that to an idle func g_idle_add([](gpointer gdata){ delete static_cast<Popup*>(gdata); return G_SOURCE_REMOVE; |