Re: [gtk-list] Want an advice: How to save/restore the state of GTK widgets
- From: Alexander Larsson <alla lysator liu se>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] Want an advice: How to save/restore the state of GTK widgets
- Date: Wed, 17 Mar 1999 09:28:51 +0100 (CET)
On Tue, 16 Mar 1999, Paul Bunyk wrote:
>
> Hello, everyone!
>
> I wonder if there is any recommended/suggested/easy way to save and
> restore the state of some of my widgets (text inputs and checkboxes
> for now) to/from a file. User can specify some path names, etc., in
> my GTK application and I want to give user a chance to save his setup
> in $HOME/.apprc file to be read on application startup. Of course I
> can do it manually, but would not it be nice to automate this task?
>
> All suggestions are welcome!
Well, i don't know if this is perfect for you, but i recently wrote
preferences handling for Dia. It uses the gscanner interface and
saves/reads ~/.diarc. It's entierly table-driven, so adding a new
preference is very easy. If you're coding a GPL program you can just snag
this code and use it. It's in the 'dia' module in the gnome cvs tree.
Check out app/preferences.c.
/ Alex
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]