Tadej Borovšak wrote:
Hello.
Essentially adding a simple store model:
store = gtk_list_store_new (1, G_TYPE_STRING);
while (foo_bar != NULL)
{
gtk_list_store_append (store, iter);
gtk_list_store_set (store, iter, 0, my_name, -1);
}
gtk_tree_view_set_model (GTK_TREE_VIEW (treeview),
Hi all,
To avoid some reentrant callbacks, in a few cases I have to use code
such as:
g_signal_handlers_block_by_func (widget, func, data);
do_stuff;
g_signal_handlers_unblock_by_func (widget, func, data);
Usually this works fine, but I have a Treeview where unblock
seems to be done too
Tadej Borovšak wrote:
Hello.
Only situation that comes to my mind that would cause
g_signal_handlers_block_by_func to misbehave is if you do something
inside blocked part of code that installs idle handler to do the real
work. What are you doing inside do_stuff part?
Essentially adding a
Hello.
Essentially adding a simple store model:
store = gtk_list_store_new (1, G_TYPE_STRING);
while (foo_bar != NULL)
{
gtk_list_store_append (store, iter);
gtk_list_store_set (store, iter, 0, my_name, -1);
}
gtk_tree_view_set_model (GTK_TREE_VIEW (treeview), GTK_TREE_MODEL