aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-config.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2003-11-17 07:18:31 +0800
committerJP Rosevear <jpr@src.gnome.org>2003-11-17 07:18:31 +0800
commit7d9d3e3df88c1696ae8da85f11fa1f908c1a1da1 (patch)
tree1ac868460d4aefcb499ee66a3edc13aafd8fc3a7 /calendar/gui/calendar-config.c
parent8b1e261b3e451e1a28176cc1b835634a1a30d0d8 (diff)
downloadgsoc2013-evolution-7d9d3e3df88c1696ae8da85f11fa1f908c1a1da1.tar
gsoc2013-evolution-7d9d3e3df88c1696ae8da85f11fa1f908c1a1da1.tar.gz
gsoc2013-evolution-7d9d3e3df88c1696ae8da85f11fa1f908c1a1da1.tar.bz2
gsoc2013-evolution-7d9d3e3df88c1696ae8da85f11fa1f908c1a1da1.tar.lz
gsoc2013-evolution-7d9d3e3df88c1696ae8da85f11fa1f908c1a1da1.tar.xz
gsoc2013-evolution-7d9d3e3df88c1696ae8da85f11fa1f908c1a1da1.tar.zst
gsoc2013-evolution-7d9d3e3df88c1696ae8da85f11fa1f908c1a1da1.zip
copy in here (update_uris_for_selection): save the selection
2003-11-16 JP Rosevear <jpr@ximian.com> * gui/tasks-component.c (is_in_uids): copy in here (update_uris_for_selection): save the selection (update_selection): update the selection when its changed somewhere else (config_selection_changed_cb): update the selection if the configuration changes (impl_createControls): store the source selector * gui/calendar-config.h: add protos * gui/calendar-config.c (calendar_config_get_tasks_selected): get the list of task lists selected (calendar_config_set_tasks_selected): save it (calendar_config_add_notification_tasks_selected): get notified about it svn path=/trunk/; revision=23374
Diffstat (limited to 'calendar/gui/calendar-config.c')
-rw-r--r--calendar/gui/calendar-config.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/calendar/gui/calendar-config.c b/calendar/gui/calendar-config.c
index 45c54a41fb..913af4acbc 100644
--- a/calendar/gui/calendar-config.c
+++ b/calendar/gui/calendar-config.c
@@ -440,6 +440,29 @@ calendar_config_set_month_vpane_pos (gint vpane_pos)
gconf_client_set_int (config, CALENDAR_CONFIG_MONTH_VPANE_POS, vpane_pos, NULL);
}
+/* The current list of task lists selected */
+GSList *
+calendar_config_get_tasks_selected (void)
+{
+ return gconf_client_get_list (config, CALENDAR_CONFIG_TASKS_SELECTED_TASKS, GCONF_VALUE_STRING, NULL);
+}
+
+void
+calendar_config_set_tasks_selected (GSList *selected)
+{
+ gconf_client_set_list (config, CALENDAR_CONFIG_TASKS_SELECTED_TASKS, GCONF_VALUE_STRING, selected, NULL);
+}
+
+guint
+calendar_config_add_notification_tasks_selected (GConfClientNotifyFunc func, gpointer data)
+{
+ guint id;
+
+ id = gconf_client_notify_add (config, CALENDAR_CONFIG_TASKS_SELECTED_TASKS, func, data, NULL, NULL);
+
+ return id;
+}
+
gint
calendar_config_get_task_vpane_pos (void)
{