aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/calendar-config.c
diff options
context:
space:
mode:
authorGary Ekker <gekker@novell.com>2004-05-01 05:33:11 +0800
committerGary Ekker <gekker@src.gnome.org>2004-05-01 05:33:11 +0800
commit8acc05254177f038ff5f93fed69fac376851a7d8 (patch)
tree22920664c6f513ad105b1e3e0f81103087a684dc /calendar/gui/calendar-config.c
parent343d0d815a4b59c13316e7125ef392be7ccdefcb (diff)
downloadgsoc2013-evolution-8acc05254177f038ff5f93fed69fac376851a7d8.tar.gz
gsoc2013-evolution-8acc05254177f038ff5f93fed69fac376851a7d8.tar.zst
gsoc2013-evolution-8acc05254177f038ff5f93fed69fac376851a7d8.zip
Set up the model to use the correct query. Setup callbacks for gconf
2004-04-30 Gary Ekker <gekker@novell.com> * gui/e-tasks.c: (e_tasks_init): Set up the model to use the correct query. Setup callbacks for gconf changes. Add an idle timeout to hide completed items. Add update_view, update_view_cb, and config_hide_completed_tasks_changed_cb to update the model view. * gui/gnome-cal.c: ditto * gui/calendar-config.h: Add notifications for hide_completed_tasks settings. * gui/calendar-config.c: ditto svn path=/trunk/; revision=25727
Diffstat (limited to 'calendar/gui/calendar-config.c')
-rw-r--r--calendar/gui/calendar-config.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/calendar/gui/calendar-config.c b/calendar/gui/calendar-config.c
index 4f8b7c59e8..e0b10dd87e 100644
--- a/calendar/gui/calendar-config.c
+++ b/calendar/gui/calendar-config.c
@@ -613,6 +613,15 @@ calendar_config_set_hide_completed_tasks (gboolean hide)
gconf_client_set_bool (config, CALENDAR_CONFIG_TASKS_HIDE_COMPLETED, hide, NULL);
}
+guint
+calendar_config_add_notification_hide_completed_tasks (GConfClientNotifyFunc func, gpointer data)
+{
+ guint id;
+
+ id = gconf_client_notify_add (config, CALENDAR_CONFIG_TASKS_HIDE_COMPLETED , func, data, NULL, NULL);
+
+ return id;
+}
CalUnits
calendar_config_get_hide_completed_tasks_units (void)
@@ -656,6 +665,15 @@ calendar_config_set_hide_completed_tasks_units (CalUnits cu)
g_free (units);
}
+guint
+calendar_config_add_notification_hide_completed_tasks_units (GConfClientNotifyFunc func, gpointer data)
+{
+ guint id;
+
+ id = gconf_client_notify_add (config, CALENDAR_CONFIG_TASKS_HIDE_COMPLETED_UNITS , func, data, NULL, NULL);
+
+ return id;
+}
gint
calendar_config_get_hide_completed_tasks_value (void)
@@ -670,6 +688,16 @@ calendar_config_set_hide_completed_tasks_value (gint value)
gconf_client_set_int (config, CALENDAR_CONFIG_TASKS_HIDE_COMPLETED_VALUE, value, NULL);
}
+guint
+calendar_config_add_notification_hide_completed_tasks_value (GConfClientNotifyFunc func, gpointer data)
+{
+ guint id;
+
+ id = gconf_client_notify_add (config, CALENDAR_CONFIG_TASKS_HIDE_COMPLETED_VALUE , func, data, NULL, NULL);
+
+ return id;
+}
+
/**
* calendar_config_get_confirm_delete:
*