Re: Gtktree bug?

Joao Moreira reuters com wrote:

Hi Balazs,

I don't really know what causes this. I did reproduce it, and I found that
if you remove the calls to set_sensitive in the callback ::

sub on_tree_select_row {
           print "on_tree_select_row\n";
           my ($widget, $node) = @_;

===>       $gtktree->set_sensitive(0);
===>       $gtktree->set_sensitive(1);
           print "RETURN\n";

then the problem goes way. But why, I don't know.
Hi, just a possibility but does set_sensitive(1) go and look for any
outstanding events? If so you would have deeeeeep recursion - perhaps
if you signal_connect_after() there will be no outstanding events to
recurse. I haven't tried either way as I don't really want to lock up
my X server (no telnet to kill it).

Just my 0.02 euro.

Regards, Dermot.

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