invernizzi/Gnome-shell-GTG-extension — Issue #1: tasks disappear from panel when gtg is restarted
Author: nimai
Created: 2012-01-11 18:37:19+00:00
State: open

Using last bazaar revision of gtg and the extension currently available on extensions.gnome.org , tasks disappear when gtg is closed and then started again.

This is reproducible by following these steps:
- start gtg with the extension enabled
- observe the tasks added to the calendar panel (not in the same order than in the Workview, but I'm not sure this is a bug), with [..] at the end of the 10tasks displayed.
- completely quit gtg
- start gtg
- only "[..]" and "Open GTG" remain in the tasklist of the calendar panel

I've not been able to fix it, but I've seen this:

[from extension.js, lines 197-203]
/* delete any element after K */
for (index in topKTasks.slice(K + 1)) {
if (task.button) {
task.button.destroy();
task.button = null;
}
}

which looks pretty strange to me, and which might be related to this bug since it is executed for every task when gtg is started, considering that gtg is sending TaskAdded signal and friends using dbus at every start (AFAIK).