[Gajim-devel] group windows by contacts groups

Serge Matveenko serge at matveenko.ru
Tue Jan 13 16:32:08 CET 2009

On Tue, Jan 13, 2009 at 4:48 PM, Yann Leboulanger <asterix at lagaule.org> wrote:
> Serge Matveenko wrote:
>> Hello!
>> I've add several lines to the gajim code to allow grouping of the tabs
>> to windows by contact groups.
>> Here is the patch for gajim-0.11.4 for sources from Ubuntu Hardy repo.
> great, thanks for the patch, but what happen if contact is in several
> groups? I see you only take care of the first group, but that can change
> from one connection to another. it's totaly random.

i don't think this is totally random, 'cause user is usually cares
about groups of the contacts and grouping by any of the groups given
to contact seems logical.

but you are right, its possible to have contacts "floating" from one
window to another...

i see several workarounds:
1. force user to define one and only one primary group for contact
2. sort groups alphabetically on window creation and than use first
group like now
3. try to choose open window for every group, that will cause more
grouped but not less random behavior

it looks for me that first solution looks best, but it will cause the
biggest code changes

Serge Matveenko
mailto:serge at matveenko.ru

More information about the Gajim-devel mailing list