From af5d157f0b34ce9d12d35b273d454a43184108da Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Wed, 10 Feb 2010 19:23:18 +0000 Subject: [PATCH] - MGR: Add some debugging to the notification code clientgui/gtk taskbarex.cpp, .h svn path=/trunk/boinc/; revision=20501 --- checkin_notes | 6 ++++++ clientgui/gtk/taskbarex.cpp | 13 ++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/checkin_notes b/checkin_notes index fadf2ffb03..79bae14868 100644 --- a/checkin_notes +++ b/checkin_notes @@ -1077,3 +1077,9 @@ Rom 10 Feb 2010 configure.ac clientgui/ Makefile.am + +Rom 10 Feb 2010 + - MGR: Add some debugging to the notification code + + clientgui/gtk + taskbarex.cpp, .h diff --git a/clientgui/gtk/taskbarex.cpp b/clientgui/gtk/taskbarex.cpp index 574a901555..6b875e59c6 100644 --- a/clientgui/gtk/taskbarex.cpp +++ b/clientgui/gtk/taskbarex.cpp @@ -154,6 +154,11 @@ bool wxTaskBarIconEx::SetIcon(const wxIcon& icon, const wxString& message) bool wxTaskBarIconEx::SetBalloon(const wxIcon& icon, const wxString title, const wxString message, unsigned int iconballoon) { + wxLogTrace(wxT("Function Start/End"), wxT("wxTaskBarIconEx::SetBalloon - Function Begin")); + + bool retval = false; + GError* error; + if (!IsOK()) return false; @@ -198,7 +203,13 @@ bool wxTaskBarIconEx::SetBalloon(const wxIcon& icon, const wxString title, const ); } - return notify_notification_show(g_pNotification, NULL); + retval = notify_notification_show(g_pNotification, &error); + if (!retval) { + wxLogTrace(wxT("Function Status"), wxT("wxTaskBarIconEx::SetBalloon - notify_notification_show error: '%s'"), error->message); + } + + wxLogTrace(wxT("Function Start/End"), wxT("wxTaskBarIconEx::SetBalloon - Function End")); + return retval; } bool wxTaskBarIconEx::QueueBalloon(const wxIcon& icon, const wxString title, const wxString message, unsigned int iconballoon)