After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 330458 - Sample code for the GLib Key-value parser
Sample code for the GLib Key-value parser
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: docs
2.9.x
Other All
: Normal minor
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2006-02-08 19:57 UTC by HECHT Franck
Modified: 2017-10-26 11:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Example for using GKeyfile (3.04 KB, patch)
2006-02-08 20:01 UTC, HECHT Franck
none Details | Review
gkeyfile: Add some examples to the documentation (2.51 KB, patch)
2017-10-19 23:23 UTC, Philip Withnall
committed Details | Review

Description HECHT Franck 2006-02-08 19:57:20 UTC
Documentation 
Section: Key-value parser
none

Correct version:
none

Other information:
here is a patch to add some sample code showing how to use the GKeyFile API
Comment 1 HECHT Franck 2006-02-08 20:01:44 UTC
Created attachment 58956 [details] [review]
Example for using GKeyfile
Comment 2 Matthias Clasen 2006-04-21 17:41:00 UTC
Thanks for your contribution.

Some comments:

- the code formatting is a bit off, we try to follow the same style
  used in GTK+ source code for the example.

- the example is a bit long, considering the supposedly simple GKeyFile
  api. Maybe split it into multiple examples at the interspersed "section
  headings"

Comment 3 Philip Withnall 2017-10-19 23:23:12 UTC
Created attachment 361905 [details] [review]
gkeyfile: Add some examples to the documentation

Add some examples of loading and saving key files.

Signed-off-by: Philip Withnall <withnall@endlessm.com>
Comment 4 Philip Withnall 2017-10-19 23:25:04 UTC
Comment on attachment 58956 [details] [review]
Example for using GKeyfile

This patch doesn’t apply any more, so I wrote a new one.
Comment 5 Matthias Clasen 2017-10-26 11:34:24 UTC
Review of attachment 58956 [details] [review]:

lets get this in before it rots again
Comment 6 Philip Withnall 2017-10-26 11:59:27 UTC
Attachment 361905 [details] pushed as a71251d - gkeyfile: Add some examples to the documentation