aboutsummaryrefslogtreecommitdiffstats
path: root/modules/calendar
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@gnome-db.org>2011-10-13 23:44:28 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-10-13 23:44:28 +0800
commitff8b1650ead99d8507469ff1fcf4805d6451ba93 (patch)
tree6fff4e0215b9b02c4afa27857db9a53f87189c20 /modules/calendar
parent65a7bac6c6d429b97659d4ceaf217a28d2dd2dee (diff)
downloadgsoc2013-evolution-ff8b1650ead99d8507469ff1fcf4805d6451ba93.tar
gsoc2013-evolution-ff8b1650ead99d8507469ff1fcf4805d6451ba93.tar.gz
gsoc2013-evolution-ff8b1650ead99d8507469ff1fcf4805d6451ba93.tar.bz2
gsoc2013-evolution-ff8b1650ead99d8507469ff1fcf4805d6451ba93.tar.lz
gsoc2013-evolution-ff8b1650ead99d8507469ff1fcf4805d6451ba93.tar.xz
gsoc2013-evolution-ff8b1650ead99d8507469ff1fcf4805d6451ba93.tar.zst
gsoc2013-evolution-ff8b1650ead99d8507469ff1fcf4805d6451ba93.zip
Port EComposerHeaderTable to GSettings
Diffstat (limited to 'modules/calendar')
-rw-r--r--modules/calendar/e-cal-shell-content.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/modules/calendar/e-cal-shell-content.c b/modules/calendar/e-cal-shell-content.c
index 6c86f5f4df..5e60ecd82b 100644
--- a/modules/calendar/e-cal-shell-content.c
+++ b/modules/calendar/e-cal-shell-content.c
@@ -52,8 +52,6 @@ struct _ECalShellContentPrivate {
GtkWidget *memo_table;
GalViewInstance *view_instance;
-
- gboolean paned_bound;
};
enum {
@@ -112,13 +110,11 @@ cal_shell_content_notify_view_id_cb (ECalShellContent *cal_shell_content)
EShellView *shell_view;
GSettings *settings;
GtkWidget *paned;
- gboolean bound;
const gchar *key;
const gchar *view_id;
settings = g_settings_new ("org.gnome.evolution.calendar");
paned = cal_shell_content->priv->hpaned;
- bound = cal_shell_content->priv->paned_bound;
shell_content = E_SHELL_CONTENT (cal_shell_content);
shell_view = e_shell_content_get_shell_view (shell_content);
@@ -129,11 +125,9 @@ cal_shell_content_notify_view_id_cb (ECalShellContent *cal_shell_content)
else
key = "hpane-position";
- if (bound)
- g_settings_unbind (settings, key);
+ g_settings_unbind (settings, key);
g_settings_bind (settings, key, G_OBJECT (paned), "hposition", G_SETTINGS_BIND_DEFAULT);
- cal_shell_content->priv->paned_bound = TRUE;
g_object_unref (settings);
}