gtk_tree_store_remove and GtkTreeView::selection_changed signal?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

I was having a problem with the GtkTreeView widget (2.0).
When I want to remove a widget I do the following

        sel = gtk_tree_view_get_selection (GTK_TREE_VIEW (view));
        gtk_tree_selection_get_selected (sel, &model, &iter);
        gtk_tree_store_remove (GTK_TREE_STORE (model), &iter);

The bug is that when it crashes saying "VALID_ITER (iter)" failed.
When I tried debugging it in gdb, I found that  when the gtk_tree_store_remove
is called, it calls my GtkTreeViewSelection::changed signal. Is that supposed
 to happen?

Help

Archit Baweja
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Processed by Mailcrypt 3.5.6 and Gnu Privacy Guard <http://www.gnupg.org/>

iD8DBQE8jcrG2rWNPKmGjMcRAh6NAJ9yH8Ss/ndXO93Tv9ZNkI/RRRBMfgCfZlRI
s8BkaUqJ4CxiEFZebhH0UKk=
=0Sdu
-----END PGP SIGNATURE-----



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