summaryrefslogtreecommitdiff
path: root/gconf/gnome-testclient.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@src.gnome.org>1999-07-30 23:30:54 +0000
committerHavoc Pennington <hp@src.gnome.org>1999-07-30 23:30:54 +0000
commit974b91ae778fb444a673de6dbcfa11c240ae4efd (patch)
tree9cb4605e34ee00d3727f497acaa1a02c74a12390 /gconf/gnome-testclient.c
parent3547943b1a2336100eefbff68602cad9efc5d735 (diff)
downloadgconf-974b91ae778fb444a673de6dbcfa11c240ae4efd.tar.gz
*** empty log message ***
Diffstat (limited to 'gconf/gnome-testclient.c')
-rw-r--r--gconf/gnome-testclient.c25
1 files changed, 20 insertions, 5 deletions
diff --git a/gconf/gnome-testclient.c b/gconf/gnome-testclient.c
index bc972ddc..e45b3c0e 100644
--- a/gconf/gnome-testclient.c
+++ b/gconf/gnome-testclient.c
@@ -64,9 +64,15 @@ main(int argc, char* argv[])
CORBA_Environment ev;
GConf* conf;
guint cnxn;
+ GConfValue* val;
CORBA_exception_init(&ev);
+ /* Bleah. Server can't use Gnome authentication unless we have a
+ gnome-gconfd, which we'll have to have eventually I guess, but
+ anyway, this is irritating.
+ */
+#if 0
orb = gnome_CORBA_init(PACKAGE, VERSION, &argc, argv, 0, &ev);
if (orb == CORBA_OBJECT_NIL)
@@ -75,11 +81,11 @@ main(int argc, char* argv[])
exit(1);
}
- /* Bleah. Server can't use Gnome authentication unless we have a
- gnome-gconfd, which we'll have to have eventually I guess, but
- anyway, this is irritating.
- */
- /* g_conf_set_orb(orb); */
+
+ g_conf_set_orb(orb);
+#endif
+ gnome_init(PACKAGE, VERSION, argc, argv);
+
g_conf_init_orb(&argc, argv);
g_conf_init();
@@ -89,6 +95,15 @@ main(int argc, char* argv[])
app = gnome_app_new("gconf-test", "Testing GConf");
entry = gtk_entry_new();
+
+ val = g_conf_get(conf, "/gnome/gconf-testclient/entry_contents");
+
+ if (val != NULL)
+ {
+ gtk_entry_set_text(GTK_ENTRY(entry), g_conf_value_string(val));
+ g_conf_value_destroy(val);
+ val = NULL;
+ }
gnome_app_set_contents(GNOME_APP(app), entry);