Reuse of a gtk_tree_model_get() Pointer
- From: dhk <dhkuhl optonline net>
- To: gtk-app-devel-list gnome org
- Subject: Reuse of a gtk_tree_model_get() Pointer
- Date: Sat, 23 Jan 2010 11:43:22 -0500
How can I reuse a pointer that was used in a call to gtk_tree_model_get()?
For example a call like gtk_tree_model_get(tmdl, &iter, INDEX, &rxi.idx,
QUANTITY, &rxi.qty, DESCRIPTION, &rxi.sdesc, -1);
If I wanted to add or change the description, depending upon whether
rxi.sdesc is NULL or not, should I free rxi.sdesc and allocate space for
the new string and then do a string copy?
Thanks,
dhk
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]