diff -r 974b8a3e2d55 -r 88a71e903038 mozilla-libnotify.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mozilla-libnotify.patch Thu Mar 22 14:37:12 2012 +0100 @@ -0,0 +1,30 @@ +# HG changeset patch +# User Wolfgang Rosenauer +# Parent 629ea8797e7393eb6e9add489db2c5636516b305 +Bug 737646 - no biff notification if notification-daemon not running + +diff --git a/toolkit/system/gnome/nsAlertsIconListener.cpp b/toolkit/system/gnome/nsAlertsIconListener.cpp +--- a/toolkit/system/gnome/nsAlertsIconListener.cpp ++++ b/toolkit/system/gnome/nsAlertsIconListener.cpp +@@ -346,16 +346,21 @@ nsAlertsIconListener::InitAlertAsync(con + for (GList* cap = server_caps; cap != NULL; cap = cap->next) { + if (!strcmp((char*) cap->data, "actions")) { + gHasActions = true; + break; + } + } + g_list_foreach(server_caps, (GFunc)g_free, NULL); + g_list_free(server_caps); ++ } else { ++ // notify_get_server_caps() is expected to return something ++ // otherwise we need to assume there is no notification-server ++ // to display anything ++ return NS_ERROR_FAILURE; + } + } + + if (!gHasActions && aAlertTextClickable) + return NS_ERROR_FAILURE; // No good, fallback to XUL + + nsCOMPtr obsServ = + do_GetService("@mozilla.org/observer-service;1");