aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-paned-view.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@gnome-db.org>2011-10-14 22:03:10 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-10-14 22:03:10 +0800
commit27cea70f2b693223db47cdb974a9f1871a8ff4fb (patch)
tree2e0458876949843aebc4a9ab2d25d0fff2fb495c /mail/e-mail-paned-view.c
parent37d246d5d09d0fc9926a8e7093c2ecf1803d5d19 (diff)
downloadgsoc2013-evolution-27cea70f2b693223db47cdb974a9f1871a8ff4fb.tar.gz
gsoc2013-evolution-27cea70f2b693223db47cdb974a9f1871a8ff4fb.tar.zst
gsoc2013-evolution-27cea70f2b693223db47cdb974a9f1871a8ff4fb.zip
Some more migration to GSettings in the mail component
Diffstat (limited to 'mail/e-mail-paned-view.c')
-rw-r--r--mail/e-mail-paned-view.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/mail/e-mail-paned-view.c b/mail/e-mail-paned-view.c
index c9ebb8a050..63d0c2ea0a 100644
--- a/mail/e-mail-paned-view.c
+++ b/mail/e-mail-paned-view.c
@@ -30,7 +30,6 @@
#include <libedataserver/e-data-server-util.h>
#include "e-util/e-util-private.h"
-#include "e-util/gconf-bridge.h"
#include "widgets/menus/gal-view-etable.h"
#include "widgets/menus/gal-view-instance.h"
#include "widgets/misc/e-paned.h"
@@ -215,23 +214,22 @@ mail_paned_view_restore_state_cb (EShellWindow *shell_window,
EMailPanedView *view)
{
EMailPanedViewPrivate *priv;
- GConfBridge *bridge;
+ GSettings *settings;
GObject *object;
- const gchar *key;
priv = E_MAIL_PANED_VIEW (view)->priv;
- /* Bind GObject properties to GConf keys. */
+ /* Bind GObject properties to GSettings keys. */
- bridge = gconf_bridge_get ();
+ settings = g_settings_new ("org.gnome.evolution.mail");
object = G_OBJECT (priv->paned);
- key = "/apps/evolution/mail/display/hpaned_size";
- gconf_bridge_bind_property (bridge, key, object, "hposition");
+ g_settings_bind (settings, "hpaned-size", object, "hposition", G_SETTINGS_BIND_DEFAULT);
object = G_OBJECT (priv->paned);
- key = "/apps/evolution/mail/display/paned_size";
- gconf_bridge_bind_property (bridge, key, object, "vposition");
+ g_settings_bind (settings, "paned-size", object, "vposition", G_SETTINGS_BIND_DEFAULT);
+
+ g_object_unref (settings);
}
static void