View Single Post
Posts: 166 | Thanked: 106 times | Joined on Dec 2007 @ Finland
#3
Originally Posted by Joorin View Post
Isn't the typical wisdom that if you're going to change the backing store, detach it from the display part first, do the change and then re-connect it?

This is what I've seen recommended for GtkTreeViews, for example.
Thanks for your suggestion. However, with my limited knowledge of GTK+, I don't know how to do that.

Anyway, I solved the problem with g_signal_handlers_block_by_func. In the example above, the first argument to g_signal_handlers_block_by_func should be GTK_WIDGET(user_data) which is a pointer pointing to the picker button. I my bigger program I also missed to notice that you must have both the function name and the user argument right.