X-Git-Url: http://git.maemo.org/git/?p=modest;a=blobdiff_plain;f=src%2Fmodest-conf.c;h=55452f46190db9b638aa1b74fd03b352f0c7bc56;hp=b6d82b3d35a58a14cbe869eb236cb20962987da9;hb=64333784e87e5ea5c6156078caacaca7ffbd6b5f;hpb=3e28a4f8349e678cb9d93d6fc3a913b15ffbd9b0 diff --git a/src/modest-conf.c b/src/modest-conf.c index b6d82b3..55452f4 100644 --- a/src/modest-conf.c +++ b/src/modest-conf.c @@ -427,7 +427,6 @@ modest_conf_on_change (GConfClient *client, key, event, conn_id); } - static GConfValueType modest_conf_type_to_gconf_type (ModestConfValueType value_type, GError **err) { @@ -470,12 +469,14 @@ modest_conf_listen_to_namespace (ModestConf *self, /* Add the namespace to the list of the namespaces that will be observed */ - gconf_client_add_dir (priv->gconf_client, namespace, + gconf_client_add_dir (priv->gconf_client, + namespace, GCONF_CLIENT_PRELOAD_NONE, &error); - if (error) + if (error) { return 0; + } /* Notify every change under namespace */ notification_id = gconf_client_notify_add (priv->gconf_client, @@ -484,10 +485,12 @@ modest_conf_listen_to_namespace (ModestConf *self, self, NULL, &error); - if (error) + + if (error) { return 0; - else + } else { return notification_id; + } } void