Re: [gtk-list] Re: selecting an item in a tree widget (fwd)



On Thu, 15 Jul 1999, Alexandru Harsanyi wrote:

> I also want to stress out that selecting items by clicking them with the
> mouse works fine. Just selecting an item from inside the application does
> not work.

It's core dumping because GtkTree->root_tree is not being set (ie, it is NULL).
The GtkTree sources don't first check if this value is non-NULL before
dereferencing it.

Add a call to gtk_widget_map( tree ) before you select it, and all is well.

BTW, someone should submit a fix for this. There needs to be a

g_return_if_fail( tree->root_tree != NULL );

in gtk_real_tree_select_child().

m.

-- 
"How wonderful! How mysterious                                   Programmer
 I carry wood! I draw water!"                   Loki Entertainment Software
 - Anonymous Tao poet



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