treeview control



Hi all,

I have gotten my treeview control partially working
but it is behaving rather oddly.

I read in a file which represents the table of
contents for a book.  All headings are saved into a
tree data store object.  The data store consists of
gpointers which point to a struct.  Within that struct
are several items, most importantly the heading text
and also its ID.  When the user selects a particular
heading, the system uses the ID to reference the book
content, which it then loads in a text pane.

I am using a cell renderer function to assign the
heading text (from the struct) to the display text. 
This works, sort of.  However, when the user moves the
mouse around, the text display gets "confused" and
starts mixing up the text strings.

So what I get is a tree list, hierarchically correct,
but with several duplicate text strings.  If you move
the mouse around rapidly, the text strings change and
I will get several that say "chapter 5" or whatever.

I also notice a PANGO warning that seems to happen
with about the same frequency as the text string
mix-up.  

Is there a way to verify the string before sending it
to the display?  Also, is there a way to just fill in
the cell data once?  There is no need for my program
to refresh itself constantly, as the text won't
change.

Any advice would be great!
Thanks
Marisa



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]