just preload one level of GConf keys, since preloading all makes the

2003-07-24  Rodrigo Moya <rodrigo@ximian.com>

	* e-config-listener.c (add_key): just preload one level of GConf keys,
	since preloading all makes the calendar startup slow.

svn path=/trunk/; revision=21940
This commit is contained in:
Rodrigo Moya
2003-07-24 09:45:32 +00:00
committed by Rodrigo Moya
parent 6fb2775ecb
commit 5ebf5d6a66
3 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-07-24 Rodrigo Moya <rodrigo@ximian.com>
* e-config-listener.c (add_key): just preload one level of GConf keys,
since preloading all makes the calendar startup slow.
2003-07-23 Dan Winship <danw@ximian.com> 2003-07-23 Dan Winship <danw@ximian.com>
* Makefile.am: Use EVO_MARSHAL_RULE * Makefile.am: Use EVO_MARSHAL_RULE

View File

@ -84,6 +84,8 @@ libeutil_la_SOURCES = \
e-url.c \ e-url.c \
e-util-marshal.c \ e-util-marshal.c \
e-xml-hash-utils.c \ e-xml-hash-utils.c \
eggtrayicon.c \
eggtrayicon.h \
md5-utils.c md5-utils.c
MARSHAL_GENERATED = e-util-marshal.c e-util-marshal.h MARSHAL_GENERATED = e-util-marshal.c e-util-marshal.h

View File

@ -231,7 +231,7 @@ add_key (EConfigListener *cl, const char *key, GConfValueType type,
kd->used_default = used_default; kd->used_default = used_default;
/* add the listener for changes */ /* add the listener for changes */
gconf_client_add_dir (cl->priv->db, key, GCONF_CLIENT_PRELOAD_RECURSIVE, NULL); gconf_client_add_dir (cl->priv->db, key, GCONF_CLIENT_PRELOAD_ONELEVEL, NULL);
kd->lid = gconf_client_notify_add (cl->priv->db, key, kd->lid = gconf_client_notify_add (cl->priv->db, key,
(GConfClientNotifyFunc) property_change_cb, (GConfClientNotifyFunc) property_change_cb,
kd, NULL, NULL); kd, NULL, NULL);