Re: Key-value file parser, howto get all groups and create loop from them
- From: Lance Dillon <riffraff169 yahoo com>
- To: gtk-app-devel-list gnome org
- Subject: Re: Key-value file parser, howto get all groups and create loop from them
- Date: Mon, 14 Aug 2006 05:15:47 -0700 (PDT)
(I hate yahoo's quoting)....
----- Original Message ----
From: "Peter "Firefly" Lund" <firefly diku dk>
To: Lance Dillon <riffraff169 yahoo com>
Cc: gtk-app-devel-list gnome org
Sent: Monday, August 14, 2006 8:07:43 AM
Subject: Re: Key-value file parser, howto get all groups and create loop from them
On Mon, 14 Aug 2006, Lance Dillon wrote:
The problem is your code doesn't seem to initialize iter in any way.
Before you call make_list, you should probably do something like this:
No, no. make_list() by itself is fine. It sets its local iter in every
iteration through the call to gtk_list_store_append().
---
Okay, I see that..
----
But actually, the real question is: why keep a global iterator around in
the first place?
----
I agree. Iterators (both tree and text) get invalidated often, and they only seem to be valid if you use
before making any other changes.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]