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 300709 - make add key/group public
make add key/group public
Status: RESOLVED WONTFIX
Product: glib
Classification: Platform
Component: general
2.6.x
Other All
: Normal enhancement
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2005-04-15 08:43 UTC by Emmanuele Bassi (:ebassi)
Modified: 2005-04-28 20:53 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
the proposed patch for public add group/key functions (6.34 KB, patch)
2005-04-15 08:49 UTC, Emmanuele Bassi (:ebassi)
none Details | Review

Description Emmanuele Bassi (:ebassi) 2005-04-15 08:43:24 UTC
we should make the addition of a key and a group public functions.
Comment 1 Emmanuele Bassi (:ebassi) 2005-04-15 08:49:56 UTC
Created attachment 45281 [details] [review]
the proposed patch for public add group/key functions

In this patch, I've rename the add_key/add_group functions as
real_add_key/real_add_group, and added two public functions:

void g_key_file_add_group (GKeyFile	*key_file,
			   const gchar	*group_name,
			   GError      **err);
void g_key_file_add_key   (GKeyFile	*key_file,
			   const gchar	*group_name,
			   const gchar	*key_name,
			   GError      **err);

I've also added two new erro constants, one for duplicate group and one for
duplicate key.
Comment 2 Matthias Clasen 2005-04-28 20:53:24 UTC
We had those functions in an earlier draft of the keyfile api, but dropped them,
since it seems better to just create groups as needed in the set_key functions.