Re: Help with gnome_config
- From: Horacio J. Peña <horape compendium com ar>
- To: "W. Reilly Cooley, Esq." <wcooley c029h021 ipdorm reed edu>
- Cc: gnome-list gnome org
- Subject: Re: Help with gnome_config
- Date: Wed, 28 Jan 1998 14:09:57 -0300
¡Hola!
> --------8<--------
> #include <string.h>
> #include <gtk/gtk.h>
> #include <libgnome/libgnome.h>
>
> int main (int argc, char **argv) {
> gnomelib_init (&argc, &argv) ;
> gnome_config_set_string ("/test/test/test", "test") ;
> return 0 ;
> }
> --------8<--------
>
> What else do I need to do? I even tried creating the config file by hand,
> adding the section, and a 'test' key and different value. I tried
> stepping through it in gdb but couldn't follow the pointers well enough to
> know what it was doing.
You need to add a gnome_config_sync(); after the gnome_config_set_* calls.
> Are there any docs anywhere telling more clearly how to use these things
> and what things to avoid, etc.? I don't mind reading the header files
> (which are pretty well commented, BTW), but sometimes there are things
> that are outside the scope of the header.
No yet, i'm going to start a little tutorial to gnome (i suposse that i'm
going to write the tutorial about the things that i know well and wait for
adds from the other's (widgets/libraries) authors...) in a near future. (i
need to learn sgml before)
> Dein,
> Wil
> --
> -------------------------------------------------------------
> W. Reilly Cooley, Esq. Schöner Götterfunken
> cooleyw@reed.edu wcooley@navi.net
> Linux 2.0.32 RedHat 5.0 (Hurricane)
HoraPe
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]