Re: gtk_list_store_new(1, G_TYPE_STRING) and retrieving data



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]