Re: gtk_list_store_new(1, G_TYPE_STRING) and retrieving data
- From: "David Necas (Yeti)" <yeti physics muni cz>
- To: gtk-app-devel-list gnome org
- Subject: Re: gtk_list_store_new(1, G_TYPE_STRING) and retrieving data
- Date: Wed, 7 Sep 2005 21:10:08 +0200
On Wed, Sep 07, 2005 at 08:42:42PM +0200, HuamiSoft Hubert Sokolowski wrote:
static gboolean model_foreach (GtkTreeModel *model,
GtkTreePath *path,
GtkTreeIter *iter,
gpointer data)
{
gtk_tree_model_get (model, iter,
COLUMN, &value,
-1);
return FALSE;
}
But don't forget to free the retrieved string, see:
http://scentric.net/tutorial/sec-treemodel-data-retrieval.html#sec-treemodel-retrieved-data-disposal
Yeti
--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]