pyatcron-devel-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Pyatcron-devel-list] Sensitive/insensitive icons/menu entries


From: Julien Olivier
Subject: Re: [Pyatcron-devel-list] Sensitive/insensitive icons/menu entries
Date: Tue, 11 Nov 2003 13:41:51 +0000

On Tue, 2003-11-11 at 12:57, Julien Olivier wrote:
> I've just modified the task list so that the "properties" and "delete"
> toolbar icons/mainmenu entries get sensitive when a task is selected and
> insensitive when no task is selected.
> 
> It also displays the ID of the currently selected task (the ID is the
> integer associated to the task, not the rank in the list).
> 
> I have one problem though, and that's why I'm writing this email:
> 
> if I CTRL-click on a selected task, it un-selects it but get_cursor()
> says that the un-selected task is selected... More over, re-clicking on
> it with CTRL re-selects it but get_selection() says it's not selected
> anymore...
> 
> I'm getting crazy :)
> 
> Do you have any idea how to solve that OR disable the CTRL-click on a
> task ?

OK, I've fixed the problem.

In fact, the "on_cursor_changed" handler was called before actually
changing the selection. So GTK was "aware" of the selection change only
_after_ the end of the handler...

I used a little hack found on a pyGtk forum to fix that.

-- 
Julien Olivier <address@hidden>

Attachment: pyatcron.tgz
Description: application/compressed-tar


reply via email to

[Prev in Thread] Current Thread [Next in Thread]