diff options
author | Havoc Pennington <hp@pobox.com> | 1999-11-15 22:29:51 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 1999-11-15 22:29:51 +0000 |
commit | dbe4b062631b25bac10ba8fa426cda549f12668d (patch) | |
tree | e2610dee09bee28ce454ee2bdb3cf95aa8b1b2ee /gconf | |
parent | 8fd6d2b1d87cd6c3100a90c6e26dfd5250cea4f6 (diff) | |
download | gconf-dbe4b062631b25bac10ba8fa426cda549f12668d.tar.gz |
write GConfClient docs.
1999-11-15 Havoc Pennington <hp@pobox.com>
* doc/gconf/tmpl/gconf-client.sgml: write GConfClient docs.
* wrappers/gtk/gconf-client.c (gconf_client_new_with_engine):
change this to increment the #GConfEngine reference count.
* doc/gconf/gconf.sgml: Add GConfClient entity
* doc/gconf/gconf-sections.txt: Add GConfClient stuff, add
set_list and set_pair for GConfChangeSet
* doc/gconf/gconf.types: New file gtk-doc requires
* doc/gconf/Makefile.am (scan): Scan GConfClient as well.
Uses a bad, probably nonportable hack, but this stuff isn't
built by default anyway.
* wrappers/Makefile.am: Build GConfClient if we have GNOME
Diffstat (limited to 'gconf')
-rw-r--r-- | gconf/gconf-client.c | 3 | ||||
-rw-r--r-- | gconf/gconf-client.h | 3 |
2 files changed, 3 insertions, 3 deletions
diff --git a/gconf/gconf-client.c b/gconf/gconf-client.c index 131068b8..a31e2b15 100644 --- a/gconf/gconf-client.c +++ b/gconf/gconf-client.c @@ -350,8 +350,9 @@ gconf_client_new_with_engine (GConfEngine* engine) client = gtk_type_new (gconf_client_get_type ()); - /* take over a ref count */ client->engine = engine; + + gconf_engine_ref(client->engine); return client; } diff --git a/gconf/gconf-client.h b/gconf/gconf-client.h index 311033a6..507b2ff1 100644 --- a/gconf/gconf-client.h +++ b/gconf/gconf-client.h @@ -144,8 +144,7 @@ GtkType gconf_client_get_type (void); /* use the default engine */ GConfClient* gconf_client_new (void); -/* specify an engine; you pass a reference count to the engine, - i.e. the client now owns your reference. */ +/* refcount on engine is incremented, you still own your ref */ GConfClient* gconf_client_new_with_engine (GConfEngine* engine); /* Add a directory to monitor and emit the value_changed signal and |