tree cell get value question
- From: samuelw mitre org (Sam Wiebenson)
- To: gtk-list gnome org
- Subject: tree cell get value question
- Date: Wed, 10 Apr 2002 17:11:08 -0400
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.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]