aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-config.c
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2003-11-15 04:49:01 +0800
committerJP Rosevear <jpr@src.gnome.org>2003-11-15 04:49:01 +0800
commit50a2665bff9c48dc25701194157802e836db9290 (patch)
treec437b9969f3549bf715a845df73d1861b8896494 /calendar/gui/calendar-config.c
parent40711386d6bff4321c410f8dde035c2e1a8527df (diff)
downloadgsoc2013-evolution-50a2665bff9c48dc25701194157802e836db9290.tar
gsoc2013-evolution-50a2665bff9c48dc25701194157802e836db9290.tar.gz
gsoc2013-evolution-50a2665bff9c48dc25701194157802e836db9290.tar.bz2
gsoc2013-evolution-50a2665bff9c48dc25701194157802e836db9290.tar.lz
gsoc2013-evolution-50a2665bff9c48dc25701194157802e836db9290.tar.xz
gsoc2013-evolution-50a2665bff9c48dc25701194157802e836db9290.tar.zst
gsoc2013-evolution-50a2665bff9c48dc25701194157802e836db9290.zip
config accessor (calendar_config_set_calendars_selected): ditto
2003-11-14 JP Rosevear <jpr@ximian.com> * gui/calendar-config.c (calendar_config_get_calendars_selected): config accessor (calendar_config_set_calendars_selected): ditto (calendar_config_add_notification_calendars_selected): config notification * gui/calendar-config.h: add protos * gui/calendar-config-keys.h: add new key * gui/calendar-component.c (is_in_uids): util function (update_uris_for_selection): save the selection in the configuration (update_selection): update the selection from the config info (source_selection_changed_cb): only pass one param (config_selection_changed_cb): listen for config changes (impl_dispose): remove config notification (impl_createControls): use bonobo_exception_set; add a config notification 2003-11-14 JP Rosevear <jpr@ximian.com> * test-source-list.c (on_idle_do_stuff): we only need the uid to remove and peek at stuff * e-source-list.h: update proto types * e-source-list.c (e_source_list_peek_source_by_uid): allow peek by uid only (e_source_list_remove_source_by_uid): allow removal by uid only svn path=/trunk/; revision=23362
Diffstat (limited to 'calendar/gui/calendar-config.c')
-rw-r--r--calendar/gui/calendar-config.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/calendar/gui/calendar-config.c b/calendar/gui/calendar-config.c
index 250328fa10..45c54a41fb 100644
--- a/calendar/gui/calendar-config.c
+++ b/calendar/gui/calendar-config.c
@@ -119,6 +119,28 @@ units_to_string (CalUnits units)
* Calendar Settings.
*/
+GSList *
+calendar_config_get_calendars_selected (void)
+{
+ return gconf_client_get_list (config, CALENDAR_CONFIG_SELECTED_CALENDARS, GCONF_VALUE_STRING, NULL);
+}
+
+void
+calendar_config_set_calendars_selected (GSList *selected)
+{
+ gconf_client_set_list (config, CALENDAR_CONFIG_SELECTED_CALENDARS, GCONF_VALUE_STRING, selected, NULL);
+}
+
+guint
+calendar_config_add_notification_calendars_selected (GConfClientNotifyFunc func, gpointer data)
+{
+ guint id;
+
+ id = gconf_client_notify_add (config, CALENDAR_CONFIG_SELECTED_CALENDARS, func, data, NULL, NULL);
+
+ return id;
+}
+
/* The current timezone, e.g. "Europe/London". It may be NULL, in which case
you should assume UTC (though Evolution will show the timezone-setting
dialog the next time a calendar or task folder is selected). */