Re: How to add stuff to treeviews??
- From: David Nečas (Yeti) <yeti physics muni cz>
- To: gtk-app-devel-list gnome org
- Subject: Re: How to add stuff to treeviews??
- Date: Tue, 29 May 2007 09:04:10 +0200
On Tue, May 29, 2007 at 08:15:40AM +0800, Jason Brisbane wrote:
I too am trying to use a Treeview model view, etc.
I have created a list store before and that works fine.
Now I am creating a new program and want to create a Treeview with a
parent iter and 6 set child iter (ie you create a "new row" and the
row
auto creates the 6 children underneath)
But I am having trouble doing ANYTHING with the treeview.
Cut/paste the example from the gtk 2.0 API simply fails to do
anything.
I am left with a blank screen. inserting g_print shows that the code
is
being called, but nothing is being displayed.
Since the gtk_tree_view is created in glade, I am simply doing a
lookup_widget on the treeview and adding columns to it (ie none
exist)
and then populating the data.
My code, very stripped down (to remove possible errors) is:
Please post selfcontained (compilable) code. Anyway, you
exchanged the child and parent iters in the tree store
construction.
Yeti
--
http://gwyddion.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]