On Mon, Jul 31, 2006 at 04:31:39PM +0200, gedeon.legaut@xxxxxxxx wrote: > On Mon, 31 Jul 2006 16:12:24 +0200 > Gédéon Légaut <gedeon.legaut@xxxxxxxx> wrote: > > > > I have a GtkTreeSelection "selection_categorie" > > linked to the treeview "article_tree" with > > gtk_tree_view_get_selection > > > > In the treeview "article_tree", I display the > >GtkTreeStore "store_article" > > with a GtkTreeModel *store = GTK_TREE_MODEL > >(store_article); > > > > GtkTreeIter *iter_categorie is the iter I'm lookking > >for. Please rather include a selfcontained code excerpt than a verbal description. > > Compilation works fine. > > > > when I run > > gtk_tree_selection_get_selected (selection_categorie, > > &store, > > iter_categorie); > > I get the error: > > > > Program received signal SIGSEGV, Segmentation fault. > > 0xb7eaa943 in gtk_tree_selection_get_selected () > > from /usr/lib/libgtk-x11-2.0.so.0 > > > > Do you have an idea what's wrong ? > > GtkTreeIter *iter_categorie > must be changed in > GtkTreeIter iter_categorie > > and > > gtk_tree_selection_get_selected (selection_categorie, > &store, > iter_categorie); > must be changed in > gtk_tree_selection_get_selected (selection_categorie, > &store, > &iter_categorie); > > But I don't understand why ! Where the original iter_categorie pointed to? I suppose a random memory location. And that's where gtk_tree_selection_get_selected() attempted to write. Yeti -- Anonyms eat their boogers. _______________________________________________ gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list