Re: Help with gnome_config



¡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]