add: g_object_set_data ( G_OBJECT(vbox), "model", model ); g_object_set_data ( G_OBJECT(vbox), "treeview", treeview );
context: GtkWidget * new_currency_vbox (){     GtkWidget * sw, * treeview, * vbox, * checkbox;    GtkTreeModel * model;    sw = gtk_scrolled_window_new (NULL, NULL);    gtk_scrolled_window_set_shadow_type (GTK_SCROLLED_WINDOW (sw),					 GTK_SHADOW_ETCHED_IN);    gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (sw),				    GTK_POLICY_NEVER,				    GTK_POLICY_ALWAYS);    treeview = new_currency_tree ();    gtk_widget_set_usize ( treeview, FALSE, 200 );    model = gtk_tree_view_get_model ( treeview );    g_signal_connect ( gtk_tree_view_get_selection (GTK_TREE_VIEW ( treeview ) ), "changed", 		       G_CALLBACK ( select_currency_in_iso_list ), model );    gtk_container_add (GTK_CONTAINER (sw), treeview);    gtk_container_set_resize_mode (GTK_CONTAINER (sw), GTK_RESIZE_PARENT);    vbox = gtk_vbox_new ( FALSE, 6 );    gtk_box_pack_start ( GTK_BOX(vbox), sw,			 TRUE, TRUE, 0 );    checkbox = gtk_check_button_new_with_label ( _("Include obsolete currencies"));    gtk_box_pack_start ( GTK_BOX(vbox), checkbox,			 FALSE, FALSE, 0 );    g_signal_connect ( G_OBJECT(checkbox), "toggled",		       (GCallback) rebuild_currency_list, treeview );    fill_currency_list ( GTK_TREE_VIEW(treeview), FALSE );    return vbox;}