I've made a few changes that seem to get some simple notifications
going...
Add the following line:
var lastMessanges = 0;
After:
var pane = null;
Then add:
if (lastMessanges < numMessanges) {
lastMessanges = numMessanges
if (lastMessanges == 1) {
Unity.Notification.showNotification("Gmail", "You have " +
lastMessanges + " unread message.", null);
}
if (lastMessanges > 1) {
Unity.Notification.showNotification("Gmail", "You have " +
lastMessanges + " unread messages.", null);
}
}
lastMessanges = numMessanges
After:
Unity.Launcher.setCount(Number(numMessanges));
The attached file contains the above changes as well as Fernando and
Andrew's changes.
This my first attempt at Java Script so feedback would be most welcome!
** Attachment added: "Modified Gmail webapp."
https://bugs.launchpad.net/ubuntu/+source/unity-webapps-gmail/+bug/1073397/+attachment/3661738/+files/GMail.user.js
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1073397
Title:
unityLoaded never gets called
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/unity-webapps-gmail/+bug/1073397/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs