← Back to team overview

gtg team mailing list archive

Re: [Bug 321903] Re: Groups for tags

 

It's working and I'm running it for normal use, but the TreeModel refresh
code is somewhat of a hack.
Before, GTG didn't do much to refresh the TagTreeModel when tags were added
as the tasks were loaded. It happened to work, but for some reason, using
child items in the TagTreeModel breaks things. There's a race condition in
which some tags don't show up.

I attempted (r310 of my branch) to refactor it and properly queue refresh
callbacks so it refreshes only the needed parts of the TagTreeModel, and as
few times as necessary. I couldn't get this to work properly, so I reverted
it and added a call to  self.tags_tv.refresh() in TaskBrowser.on_task_added,
which makes it work, but there's a chance that would be slow if someone has
a lot of tasks or tags.

Can someone who knows more about the internals of GTG and GTK take a look at
this?


On Mon, Sep 28, 2009 at 2:30 AM, Lionel Dricot <ploum@xxxxxxxxx> wrote:

> kevin > any chance to see your branch ready for 0.2 or is it too early ?
>
> --
> Groups for tags
> https://bugs.launchpad.net/bugs/321903
> You received this bug notification because you are a direct subscriber
> of the bug.
>

-- 
Groups for tags
https://bugs.launchpad.net/bugs/321903
You received this bug notification because you are a member of Gtg
developers, which is subscribed to Getting Things GNOME!.

Status in Getting Things GNOME!: Confirmed

Bug description:
Tag list should provide a way to group related tags. To would be nice in order to be able to create a certain categorization of tags. Ex:

All tasks (17)
Tasks without tags (1)
----------
Contexts  (8):
    @Home (3)
    @Work (4)
    @Downtown (1)
People (7)
    @Mike (6)
    @Ian (2)
@tag1 (0)
@tag2 (3)
@tag3 (1)



References