aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/main.c
diff options
context:
space:
mode:
authorClifford R. Conover <rconover@montana.edu>1999-03-11 10:58:18 +0800
committerArturo Espinosa <unammx@src.gnome.org>1999-03-11 10:58:18 +0800
commit9adbbaf76fe141c5a5051999f37a9ee9a005153e (patch)
tree90ae3d6ec9f3abf76de8f9e3caf047f136fa95ea /calendar/main.c
parent20bba8a8f67d1e347d00748b03908f948c2be6b7 (diff)
downloadgsoc2013-evolution-9adbbaf76fe141c5a5051999f37a9ee9a005153e.tar
gsoc2013-evolution-9adbbaf76fe141c5a5051999f37a9ee9a005153e.tar.gz
gsoc2013-evolution-9adbbaf76fe141c5a5051999f37a9ee9a005153e.tar.bz2
gsoc2013-evolution-9adbbaf76fe141c5a5051999f37a9ee9a005153e.tar.lz
gsoc2013-evolution-9adbbaf76fe141c5a5051999f37a9ee9a005153e.tar.xz
gsoc2013-evolution-9adbbaf76fe141c5a5051999f37a9ee9a005153e.tar.zst
gsoc2013-evolution-9adbbaf76fe141c5a5051999f37a9ee9a005153e.zip
Add support for Due Date when adding a TODO item here. (column_resized):
1999-03-10 Clifford R. Conover <rconover@montana.edu> * gncal-todo.c (simple_todo_editor): Add support for Due Date when adding a TODO item here. (column_resized): New function (init_column_sorting): New function. (todo_click_column): New function. (convert_time_t_to_char, make_overdue_todo_style): New functions. * gnome-cal.c (gnome_calendar_todo_properties_changed): New function used to update the TODO when the properties have been chagned for it. * prop.c (prop_apply_todo): Apply TODO properties. * gncal-day-panel.c (todo_list_properties_changed): Update the TODO display here. * eventedit.c (date_edit_new): Made public svn path=/trunk/; revision=757
Diffstat (limited to 'calendar/main.c')
-rw-r--r--calendar/main.c25
1 files changed, 24 insertions, 1 deletions
diff --git a/calendar/main.c b/calendar/main.c
index 0d572277ba..6818eb8d23 100644
--- a/calendar/main.c
+++ b/calendar/main.c
@@ -56,7 +56,8 @@ struct color_prop color_props[] = {
{ 0xfc1e, 0xf87f, 0x5f80, N_("Appointments:"), "/calendar/Colors/mark_bg" },
{ 0xd364, 0xc6b7, 0x7969, N_("Highlighted day:"), "/calendar/Colors/prelight_bg" },
{ 0x01f0, 0x01f0, 0x01f0, N_("Day numbers:"), "/calendar/Colors/day_fg" },
- { 0x0000, 0x0000, 0xffff, N_("Current day's number:"), "/calendar/Colors/current_fg" }
+ { 0x0000, 0x0000, 0xffff, N_("Current day's number:"), "/calendar/Colors/current_fg" },
+ { 0x0000, 0xaaaa, 0xaaaa, N_("Overdue TODO item"), "/calendar/Coloirs/todo_overdue" }
};
/* Number of active calendars */
@@ -134,6 +135,17 @@ init_calendar (void)
g_free (color);
}
+ /* read todolist settings */
+
+ todo_show_due_date = gnome_config_get_bool("/calendar/Todo/show_due_date");
+
+ todo_due_date_overdue_highlight = gnome_config_get_bool("/calendar/Todo/highlight_overdue_tasks");
+
+ todo_current_sort_column = gnome_config_get_int("/calendar/Todo/sort_column");
+
+ todo_current_sort_type = gnome_config_get_int("/calendar/Todo/sort_type");
+
+
/* Done */
gnome_config_pop_prefix ();
@@ -223,6 +235,17 @@ colors_changed (void)
gnome_calendar_colors_changed (GNOME_CALENDAR (l->data));
}
+void
+todo_properties_changed(void)
+{
+ GList *l;
+
+ for (l = all_calendars; l; l = l->next)
+ gnome_calendar_todo_properties_changed (GNOME_CALENDAR (l->data));
+}
+
+
+
static void
quit_cmd (void)
{