Re: Help with gnome_config



>  #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 ;
>  }
>  
>  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 should call gnome_config_sync() when you are done with the config
file so that it will be updated.

  Quartic



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]