How do I get the value of a cell out of a tree?

I tried:
        gtk_tree_model_get(GTK_TREE_MODEL(store), &child, 
                           STATEMENT_COL, &temp_str,
                           -1);
        printf("This is the value: %s\n", temp_str);

But it prints out gibberish and gives me a:

 GLib-GObject-CRITICAL **: file gvalue.c: line 147 (g_value_unset):
assertion `G_IS_VALUE (value)' failed

I then tried:

        gtk_tree_model_get_value(GTK_TREE_MODEL(store), &child, STATEMENT_COL,
&temp);

But I couldn't find a way to get the value out of a GValue type, and had
to half-ass it with:

        printf("This is the value: %s\n",
g_strdup_value_contents(&temp));

Which works, but is obviously not the way to do it.  
What am I missing?  Thanks for any help.


_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to