Re: GKeyFile use on Windows

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

 



Richard Gipps <rgipps@xxxxxxxxxxxxxxx> writes:

> While I can see how to retrieve the setting from a file there does
> not seem to be a function to write a GKeyFile to a disk file.  So
> does this mean you have to create a GKeyFile using g_key_file_new(),
> add the keys, then use g_key_file_to_data() to write the data to a
> string, then write the string to a file?

Yes.  You could use a GIOChannel, FILE or fd.

Personally, I write it out by hand using printf, since my application
data is not contained within the GKeyFile after I initially read the
GKeyFile off disk and extract the needed information.  I may revisit
that, though.

> Or is the GKeyFile written to the registry some how?

They have nothing to do with each other.

-- 
Roger Leigh
                Printing on GNU/Linux?  http://gimp-print.sourceforge.net/
                Debian GNU/Linux        http://www.debian.org/
                GPG Public Key: 0x25BFB848.  Please sign and encrypt your mail.
_______________________________________________

gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux