diff options
author | Damon Chaplin <damon@helixcode.com> | 2000-07-26 03:49:15 +0800 |
---|---|---|
committer | Damon Chaplin <damon@src.gnome.org> | 2000-07-26 03:49:15 +0800 |
commit | cd27c67fbc2f2a363579ce612c5937a4b12d1e49 (patch) | |
tree | 8e8d54ce72794dcc736ab075013264dc3d154217 /calendar/gui/gnome-cal.c | |
parent | 516b594aa9e8abf1643905e7eb48e21f8684c1aa (diff) | |
download | gsoc2013-evolution-cd27c67fbc2f2a363579ce612c5937a4b12d1e49.tar.gz gsoc2013-evolution-cd27c67fbc2f2a363579ce612c5937a4b12d1e49.tar.zst gsoc2013-evolution-cd27c67fbc2f2a363579ce612c5937a4b12d1e49.zip |
new ECalendarTable to show an ETable view for Todo/Event items.
2000-07-25 Damon Chaplin <damon@helixcode.com>
* gui/e-calendar-table.[hc]: new ECalendarTable to show an ETable view
for Todo/Event items.
* gui/task-assigned-to.xpm:
* gui/task-recurring.xpm:
* gui/task-assigned.xpm:
* gui/task.xpm: new pixmaps (all the same at present) to go in the
icon column of the ETable.
* gui/event-editor.c: hid the silly 'Calendar' labels on the
GnomeDateEdits and hid the times when you select 'All day event'.
Also adjusted the time_t's so that when an all day event finishes on
say midnight 13th May, we show 12th May in the dialog, since it
implicitly includes all of that day up to midnight.
* gui/dialogs/task-editor-dialog.glade:
* gui/dialogs/task-editor.[hc]: unfinished dialog to edit tasks.
* gui/gncal-todo.c: temporary hack so that we can use the simple dialog
with our new ETable.
svn path=/trunk/; revision=4323
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r-- | calendar/gui/gnome-cal.c | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c index 6291cd67cd..bf3ce408d5 100644 --- a/calendar/gui/gnome-cal.c +++ b/calendar/gui/gnome-cal.c @@ -23,10 +23,10 @@ #include <cal-util/timeutil.h> #include "dialogs/alarm-notify-dialog.h" #include "alarm.h" +#include "e-calendar-table.h" #include "e-day-view.h" #include "e-week-view.h" #include "event-editor.h" -#include "gncal-todo.h" #include "gnome-cal.h" #include "calendar-commands.h" @@ -208,9 +208,17 @@ setup_widgets (GnomeCalendar *gcal) gcal); /* The ToDo list. */ +#if 0 gcal->todo = gncal_todo_new (gcal); e_paned_pack2 (E_PANED (vpane), gcal->todo, TRUE, TRUE); gtk_widget_show (gcal->todo); +#endif + + gcal->todo = e_calendar_table_new (); + e_paned_pack2 (E_PANED (vpane), gcal->todo, TRUE, TRUE); + gtk_widget_show (gcal->todo); + e_calendar_table_set_cal_client (E_CALENDAR_TABLE (gcal->todo), + gcal->client); /* The Day View. */ @@ -796,7 +804,9 @@ gnome_calendar_update_all (GnomeCalendar *cal) e_week_view_update_all_events (E_WEEK_VIEW (cal->week_view)); e_week_view_update_all_events (E_WEEK_VIEW (cal->month_view)); +#if 0 gncal_todo_update (GNCAL_TODO (cal->todo), NULL, TRUE); +#endif gnome_calendar_tag_calendar (cal, cal->gtk_calendar); } @@ -870,7 +880,9 @@ gnome_calendar_object_updated_cb (GtkWidget *cal_client, e_week_view_update_event (E_WEEK_VIEW (gcal->week_view), uid); e_week_view_update_event (E_WEEK_VIEW (gcal->month_view), uid); +#if 0 gncal_todo_update (GNCAL_TODO (gcal->todo), NULL, TRUE); +#endif gnome_calendar_tag_calendar (gcal, gcal->gtk_calendar); } @@ -890,7 +902,9 @@ gnome_calendar_object_removed_cb (GtkWidget *cal_client, e_week_view_remove_event (E_WEEK_VIEW (gcal->week_view), uid); e_week_view_remove_event (E_WEEK_VIEW (gcal->month_view), uid); +#if 0 gncal_todo_update (GNCAL_TODO (gcal->todo), NULL, CHANGE_ALL); +#endif gnome_calendar_tag_calendar (gcal, gcal->gtk_calendar); } @@ -931,7 +945,7 @@ typedef struct static void -gnome_calendar_load_cb (GtkWidget *cal_client, +gnome_calendar_load_cb (CalClient *cal_client, CalClientLoadStatus status, load_or_create_data *locd) { @@ -1242,7 +1256,9 @@ gnome_calendar_colors_changed (GnomeCalendar *gcal) g_return_if_fail (GNOME_IS_CALENDAR (gcal)); todo_style_changed = 1; +#if 0 gncal_todo_update (GNCAL_TODO (gcal->todo), NULL, 0); +#endif } void @@ -1252,7 +1268,9 @@ gnome_calendar_todo_properties_changed (GnomeCalendar *gcal) g_return_if_fail (GNOME_IS_CALENDAR (gcal)); todo_style_changed = 1; +#if 0 gncal_todo_update (GNCAL_TODO (gcal->todo), NULL, 0); +#endif } |