diff options
author | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-11-02 21:59:25 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-11-02 21:59:25 +0800 |
commit | 22eeb9e05d9a01f1686e40cd60f8f7907385c9be (patch) | |
tree | 92638134d1bd42441828ef183bfe9064fa78113c | |
parent | 0849af1df6b923a534b3982406d690bb344355ab (diff) | |
download | gsoc2013-evolution-22eeb9e05d9a01f1686e40cd60f8f7907385c9be.tar.gz gsoc2013-evolution-22eeb9e05d9a01f1686e40cd60f8f7907385c9be.tar.zst gsoc2013-evolution-22eeb9e05d9a01f1686e40cd60f8f7907385c9be.zip |
Migrate face plugin to GSettings
-rw-r--r-- | plugins/face/face.c | 14 | ||||
-rw-r--r-- | plugins/mailing-list-actions/mailing-list-actions.c | 1 |
2 files changed, 7 insertions, 8 deletions
diff --git a/plugins/face/face.c b/plugins/face/face.c index df9eafcd5a..d344548e45 100644 --- a/plugins/face/face.c +++ b/plugins/face/face.c @@ -35,17 +35,17 @@ #define d(x) -#define SETTINGS_KEY "/apps/evolution/eplugin/face/insert_by_default" +#define SETTINGS_KEY "insert-face-picture" static gboolean get_include_face_by_default (void) { - GConfClient *gconf = gconf_client_get_default (); + GSettings *settings = g_settings_new ("org.gnome.evolution.eplugin.face-picture"); gboolean res; - res = gconf_client_get_bool (gconf, SETTINGS_KEY, NULL); + res = g_settings_get_boolean (settings, SETTINGS_KEY); - g_object_unref (gconf); + g_object_unref (settings); return res; } @@ -53,11 +53,11 @@ get_include_face_by_default (void) static void set_include_face_by_default (gboolean value) { - GConfClient *gconf = gconf_client_get_default (); + GSettings *settings = g_settings_new ("org.gnome.evolution.eplugin.face-picture"); - gconf_client_set_bool (gconf, SETTINGS_KEY, value, NULL); + g_settings_set_boolean (settings, SETTINGS_KEY, value); - g_object_unref (gconf); + g_object_unref (settings); } static gchar * diff --git a/plugins/mailing-list-actions/mailing-list-actions.c b/plugins/mailing-list-actions/mailing-list-actions.c index e9d2dda7ee..8e849be972 100644 --- a/plugins/mailing-list-actions/mailing-list-actions.c +++ b/plugins/mailing-list-actions/mailing-list-actions.c @@ -28,7 +28,6 @@ #include <stdio.h> #include <string.h> #include <gtk/gtk.h> -#include <gconf/gconf-client.h> #include "composer/e-msg-composer.h" #include "mail/e-mail-browser.h" |