Re: treeview: seg fault When Collapsing a Row Containg a Selected Item
- From: Marshall Lake <mlake mlake net>
- To: James Scott Jr <skoona verizon net>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: treeview: seg fault When Collapsing a Row Containg a Selected Item
- Date: Mon, 18 Jun 2007 19:08:26 -0400 (EDT)
I have a treeview/treestore containing many top-level rows. Each
top-level row contains many children. The treeview works fine except
for one thing. If the user expands a top-level row, selects a child,
and then collapses that row the program seg faults with the console
error:
gtk_tree_store_get_value: assertion `iter->stamp == GTK_TREE_STORE (tree_model)->stamp' failed
gtype.c:3351: type id `0' is invalid
can't peek value table for type `<invalid>' which is not currently referenced
void
TeamSelected2 (GtkTreeSelection *selection) {
GtkTreeModel *model;
GtkTreePath *path;
GtkTreeIter iter;
gint sub, row_count, x;
gchar *teamname, path_str[10] = " ";
gboolean valid;
gtk_tree_selection_get_selected (selection, &model, &iter);
The gtk_tree_selection_get_selected() api returns TRUE is something is
selected. You never checked its return value!
That's the ticket! I appreciate your help.
--
Marshall Lake -- mlake mlake net -- http://mlake.net
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]