Re: Saving treeview state
- From: Jens Sauer <jens sauer ewetel net>
- To: Gtk+ App Devel <gtk-app-devel-list gnome org>
- Subject: Re: Saving treeview state
- Date: Fri, 09 Feb 2007 10:08:47 +0100
Am Donnerstag, den 08.02.2007, 18:24 -0500 schrieb Dave Moore:
If this is a stupid question, please feel free to flame me.
I have an app that has a treeview. I would like to save some state
information about this treeview to restore the next session. Namely I would
like to remember the column sizes and positions so the user doesnt have to
keep resetting them everytime he loads the app.
Is there a simple/obvious way to do this? I've been googling for a few
hours now and nothing is jumping off my screen.
Thanks in advance.
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
maybe you can get the columns with:
and then you can get the width property of the column with:
for the other properties there are also functions to get the value.
On restoring, I think you must set the width with this:
I never tried. But I think this should work.
I'm interested if this works.
Jens Sauer <jens sauer ewetel net>
] [Thread Prev