[gnome-terminal] Remove unneeded code
- From: Behdad Esfahbod <behdad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal] Remove unneeded code
- Date: Mon, 8 Mar 2010 05:51:14 +0000 (UTC)
commit 55e52f9bd0870792dfd13fbe1b385aaf0f93c07c
Author: Behdad Esfahbod <behdad behdad org>
Date: Mon Mar 8 00:36:49 2010 -0500
Remove unneeded code
gconf_client_add_dir() does preloading already, no need for a separate
call.
src/terminal-app.c | 11 -----------
src/terminal-util.c | 1 -
2 files changed, 0 insertions(+), 12 deletions(-)
---
diff --git a/src/terminal-app.c b/src/terminal-app.c
index 811e018..66c220b 100644
--- a/src/terminal-app.c
+++ b/src/terminal-app.c
@@ -1390,7 +1390,6 @@ terminal_app_init (TerminalApp *app)
app->conf = gconf_client_get_default ();
- /* We need to monitor these gconf dirs */
gconf_client_add_dir (app->conf, CONF_GLOBAL_PREFIX,
GCONF_CLIENT_PRELOAD_ONELEVEL,
NULL);
@@ -1404,16 +1403,6 @@ terminal_app_init (TerminalApp *app)
GCONF_CLIENT_PRELOAD_ONELEVEL,
NULL);
- /* Now actually preload the gconf dirs */
- gconf_client_preload (app->conf, CONF_GLOBAL_PREFIX,
- GCONF_CLIENT_PRELOAD_ONELEVEL, NULL);
- gconf_client_preload (app->conf, MONOSPACE_FONT_DIR,
- GCONF_CLIENT_PRELOAD_ONELEVEL, NULL);
- gconf_client_preload (app->conf, CONF_PROXY_PREFIX,
- GCONF_CLIENT_PRELOAD_ONELEVEL, NULL);
- gconf_client_preload (app->conf, CONF_HTTP_PROXY_PREFIX,
- GCONF_CLIENT_PRELOAD_ONELEVEL, NULL);
-
app->profile_list_notify_id =
gconf_client_notify_add (app->conf, PROFILE_LIST_KEY,
terminal_app_profile_list_notify_cb,
diff --git a/src/terminal-util.c b/src/terminal-util.c
index b50bf48..1a38ea5 100644
--- a/src/terminal-util.c
+++ b/src/terminal-util.c
@@ -866,7 +866,6 @@ terminal_util_add_proxy_env (GHashTable *env_table)
GConfClient *conf;
conf = gconf_client_get_default ();
- gconf_client_preload (conf, CONF_PROXY_PREFIX, GCONF_CLIENT_PRELOAD_ONELEVEL, NULL);
/* If mode is not manual, nothing to set */
proxymode = conf_get_string (conf, CONF_PROXY_PREFIX "/mode");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]