- MGR: Add some debugging to the notification code

clientgui/gtk
        taskbarex.cpp, .h

svn path=/trunk/boinc/; revision=20501
This commit is contained in:
Rom Walton 2010-02-10 19:23:18 +00:00
parent 73a019ffdf
commit af5d157f0b
2 changed files with 18 additions and 1 deletions

View File

@ -1077,3 +1077,9 @@ Rom 10 Feb 2010
configure.ac configure.ac
clientgui/ clientgui/
Makefile.am Makefile.am
Rom 10 Feb 2010
- MGR: Add some debugging to the notification code
clientgui/gtk
taskbarex.cpp, .h

View File

@ -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) 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()) if (!IsOK())
return false; 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) bool wxTaskBarIconEx::QueueBalloon(const wxIcon& icon, const wxString title, const wxString message, unsigned int iconballoon)