Re: GList and GtkTreeView problems
- From: Matthias Mann <matman matman24 org>
- To: gtk-app-devel-list gnome org
- Subject: Re: GList and GtkTreeView problems
- Date: Wed, 06 Aug 2003 14:40:35 +0200
On Monday August 04 2003 23:09 CEST, Richard Baverstock wrote:
odd, I've always done that. I'll fix that. I havn't got any
compiler warnings/errors (gcc 3.2.2) relating to it though.
Hi Richard!
May be possible i made a wrong posting about my experiences.
Sorry if that. Don't remember if the warnings i talked about
was a cause of invalid tree view objects. I use gcc 2.95.4
and have anabled the 'GNOME_COMPILE_WARNINGS' in configure.in
file. May also be possible that not the compiler made warnings,
but running program made Gtk-Warnings/GObject-Warnings. Sorry
i don't remember all of that. It was some time ago.
But this is very shure: when i tried to use the same renderer
for different colums, then each column had the same value.
Ok! Whats about your application? Could you solve your problem?
I have found a good way to reduce source code. One function for
the first step that creates a new tree view with model, with
one column and with title. And one function that fills the
column with a single value for use it in a loop like:
struct ct_tree_view tree_view=ct_tree_view_new("title",
"root_value");
for(i=0; i<50; i++) {
ct_tree_item_new(tree_view, "value i"); }
This works very well. While creating the tree view i can be
shure that the column has its own renderer. It's a minimum of
code needed to create new iters and append them to the tree
cause only these two functions are needed. But i'm not ready
yet with it. So i don't post the code of this two short
functions today. Tonight or next weekend i'll have all done.
If no new troble will delay my work.
Much greetings,
Mathew
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]