aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorSrinivasa Ragavan <sragavan@gnome.org>2010-03-01 13:24:01 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-03-14 09:49:49 +0800
commitb5354ee4b83fa05b38eda85c79ca590ad3f90bff (patch)
tree34e24ab35670dd8a30426006e66ff7a40eeaf621 /shell
parentc38f7da6ed1eb22494fb989aacbff36414fcdd97 (diff)
downloadgsoc2013-evolution-b5354ee4b83fa05b38eda85c79ca590ad3f90bff.tar
gsoc2013-evolution-b5354ee4b83fa05b38eda85c79ca590ad3f90bff.tar.gz
gsoc2013-evolution-b5354ee4b83fa05b38eda85c79ca590ad3f90bff.tar.bz2
gsoc2013-evolution-b5354ee4b83fa05b38eda85c79ca590ad3f90bff.tar.lz
gsoc2013-evolution-b5354ee4b83fa05b38eda85c79ca590ad3f90bff.tar.xz
gsoc2013-evolution-b5354ee4b83fa05b38eda85c79ca590ad3f90bff.tar.zst
gsoc2013-evolution-b5354ee4b83fa05b38eda85c79ca590ad3f90bff.zip
Libify settings capplet.
Diffstat (limited to 'shell')
-rw-r--r--shell/e-shell-settings.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/shell/e-shell-settings.c b/shell/e-shell-settings.c
index ac25d1f9e7..99e1822e68 100644
--- a/shell/e-shell-settings.c
+++ b/shell/e-shell-settings.c
@@ -54,20 +54,17 @@ shell_settings_pspec_for_key (const gchar *property_name,
entry = gconf_client_get_entry (client, gconf_key, NULL, TRUE, &error);
if (error != NULL) {
- g_error ("%s", error->message);
- g_assert_not_reached ();
+ return NULL;
}
schema_name = gconf_entry_get_schema_name (entry);
if (schema_name == NULL) {
- g_error ("No schema for GConf key '%s'", gconf_key);
- g_assert_not_reached ();
+ return NULL;
}
schema = gconf_client_get_schema (client, schema_name, &error);
if (error != NULL) {
- g_error ("%s", error->message);
- g_assert_not_reached ();
+ return NULL;
}
value_type = gconf_schema_get_type (schema);
@@ -380,6 +377,9 @@ e_shell_settings_install_property_for_key (const gchar *property_name,
g_return_if_fail (gconf_key != NULL);
pspec = shell_settings_pspec_for_key (property_name, gconf_key);
+ if (!pspec)
+ return;
+
e_shell_settings_install_property (pspec);
for (iter = instances; iter != NULL; iter = iter->next)