Re: Signal handler.



On Wed, 2003-12-31 at 12:02, Nils O. Selaasdal wrote:

Just a Q, if one destroys the treeview, won't it automatically
disconnect the signal handlers someone registred on it ?

I think so, I guess you could do something like:
 
GtkTreeModel *model = gtk_tree_view_get_model (treeview);
gtk_widget_destroy (treeview);
treeview = gtk_tree_view_new_with_model (model)
g_signal_connect (G_OBJECT(treeview), "row-activated", my_cb_func,
data);

etc etc...

Keith.




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