aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-config.c
diff options
context:
space:
mode:
authorSam Yang <sam.yang@sun.com>2006-03-03 21:24:39 +0800
committerSimon Zheng <simonz@src.gnome.org>2006-03-03 21:24:39 +0800
commit592f7b147ef9546ddea75d7fe71a6950180eceff (patch)
treec65e391b1660a6393a1fbb578a44fb62615330f5 /calendar/gui/calendar-config.c
parentc7ce7a09d004d290b291ba26310260d27806e6c7 (diff)
downloadgsoc2013-evolution-592f7b147ef9546ddea75d7fe71a6950180eceff.tar
gsoc2013-evolution-592f7b147ef9546ddea75d7fe71a6950180eceff.tar.gz
gsoc2013-evolution-592f7b147ef9546ddea75d7fe71a6950180eceff.tar.bz2
gsoc2013-evolution-592f7b147ef9546ddea75d7fe71a6950180eceff.tar.lz
gsoc2013-evolution-592f7b147ef9546ddea75d7fe71a6950180eceff.tar.xz
gsoc2013-evolution-592f7b147ef9546ddea75d7fe71a6950180eceff.tar.zst
gsoc2013-evolution-592f7b147ef9546ddea75d7fe71a6950180eceff.zip
Fixes #324560 Request notification of changes to show_task_preview.
2006-03-03 Sam Yang <sam.yang@sun.com> Fixes #324560 * gui/calendar-config.[ch]: (calendar_config_add_notification_preview_state): Request notification of changes to show_task_preview. * gui/e-tasks.c: (config_preview_state_changed_cb): Callback function. (setup_config): Send notification request and store connection ID. svn path=/trunk/; revision=31631
Diffstat (limited to 'calendar/gui/calendar-config.c')
-rw-r--r--calendar/gui/calendar-config.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/calendar/gui/calendar-config.c b/calendar/gui/calendar-config.c
index e8de54d1af..c3af59e82f 100644
--- a/calendar/gui/calendar-config.c
+++ b/calendar/gui/calendar-config.c
@@ -658,6 +658,16 @@ calendar_config_set_preview_state (gboolean state)
gconf_client_set_bool (config, CALENDAR_CONFIG_TASK_PREVIEW, state, NULL);
}
+guint
+calendar_config_add_notification_preview_state (GConfClientNotifyFunc func, gpointer data)
+{
+ guint id;
+
+ id = gconf_client_notify_add (config, CALENDAR_CONFIG_TASK_PREVIEW, func, data, NULL, NULL);
+
+ return id;
+}
+
gint
calendar_config_get_month_hpane_pos (void)
{