aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorFederico Mena Quintero <federico@helixcode.com>2000-03-23 00:19:09 +0800
committerFederico Mena Quintero <federico@src.gnome.org>2000-03-23 00:19:09 +0800
commit44e1a62c0ca5aede11bb1a5c7551186d7618dadb (patch)
tree0df2902de30772adecbbedd24275e058e91548be /calendar/gui
parent702ea268dbedd035d7ed88be9f020a9474930411 (diff)
downloadgsoc2013-evolution-44e1a62c0ca5aede11bb1a5c7551186d7618dadb.tar.gz
gsoc2013-evolution-44e1a62c0ca5aede11bb1a5c7551186d7618dadb.tar.zst
gsoc2013-evolution-44e1a62c0ca5aede11bb1a5c7551186d7618dadb.zip
Fix includes. (e_day_view_on_delete_occurance): Do not call
2000-03-17 Federico Mena Quintero <federico@helixcode.com> * gui/e-day-view.c: Fix includes. (e_day_view_on_delete_occurance): Do not call save_default_calendar(). (e_day_view_on_delete_appointment): Likewise. (e_day_view_on_unrecur_appointment): Likewise. (e_day_view_finish_long_event_resize): Likewise. (e_day_view_finish_resize): Likewise. (e_day_view_key_press): Likewise. (e_day_view_on_editing_stopped): Likewise. (e_day_view_on_top_canvas_drag_data_received): Likewise. (e_day_view_on_main_canvas_drag_data_received): Likewise. svn path=/trunk/; revision=2140
Diffstat (limited to 'calendar/gui')
-rw-r--r--calendar/gui/Makefile.am8
-rw-r--r--calendar/gui/e-day-view.c17
-rw-r--r--calendar/gui/gncal-todo.c5
3 files changed, 17 insertions, 13 deletions
diff --git a/calendar/gui/Makefile.am b/calendar/gui/Makefile.am
index d5e4bdbfde..d023d251b0 100644
--- a/calendar/gui/Makefile.am
+++ b/calendar/gui/Makefile.am
@@ -24,6 +24,14 @@ INCLUDES = \
gnomecal_SOURCES = \
alarm.c \
alarm.h \
+ e-day-view-main-item.c \
+ e-day-view-main-item.h \
+ e-day-view-time-item.c \
+ e-day-view-time-item.h \
+ e-day-view-top-item.c \
+ e-day-view-top-item.h \
+ e-day-view.c \
+ e-day-view.h \
eventedit.c \
eventedit.h \
getdate.y \
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c
index 8b8e272faf..ef1e55520c 100644
--- a/calendar/gui/e-day-view.c
+++ b/calendar/gui/e-day-view.c
@@ -26,17 +26,17 @@
* EDayView - displays the Day & Work-Week views of the calendar.
*/
+#include <config.h>
#include <math.h>
#include <time.h>
#include <gnome.h>
#include <gdk/gdkx.h>
-
+#include <cal-util/timeutil.h>
#include "e-day-view.h"
#include "e-day-view-time-item.h"
#include "e-day-view-top-item.h"
#include "e-day-view-main-item.h"
#include "main.h"
-#include "timeutil.h"
#include "popup-menu.h"
#include "eventedit.h"
#include "../e-util/e-canvas.h"
@@ -1998,7 +1998,6 @@ e_day_view_on_delete_occurance (GtkWidget *widget, gpointer data)
ical_object_add_exdate (event->ico, event->start);
gnome_calendar_object_changed (day_view->calendar, event->ico,
CHANGE_DATES);
- save_default_calendar (day_view->calendar);
}
@@ -2015,7 +2014,6 @@ e_day_view_on_delete_appointment (GtkWidget *widget, gpointer data)
return;
gnome_calendar_remove_object (day_view->calendar, event->ico);
- save_default_calendar (day_view->calendar);
}
@@ -2044,7 +2042,6 @@ e_day_view_on_unrecur_appointment (GtkWidget *widget, gpointer data)
gnome_calendar_object_changed (day_view->calendar, event->ico,
CHANGE_ALL);
gnome_calendar_add_object (day_view->calendar, ico);
- save_default_calendar (day_view->calendar);
}
@@ -2452,7 +2449,6 @@ e_day_view_finish_long_event_resize (EDayView *day_view)
/* Notify calendar of change */
gnome_calendar_object_changed (day_view->calendar, event->ico,
CHANGE_DATES);
- save_default_calendar (day_view->calendar);
}
@@ -2493,7 +2489,6 @@ e_day_view_finish_resize (EDayView *day_view)
/* Notify calendar of change */
gnome_calendar_object_changed (day_view->calendar, event->ico,
CHANGE_DATES);
- save_default_calendar (day_view->calendar);
}
@@ -2550,7 +2545,7 @@ e_day_view_reload_events (EDayView *day_view)
day_view->drag_event_day = -1;
if (day_view->calendar) {
- calendar_iterate (day_view->calendar->cal,
+ calendar_iterate (day_view->calendar,
day_view->lower,
day_view->upper,
e_day_view_add_event,
@@ -3393,7 +3388,6 @@ e_day_view_key_press (GtkWidget *widget, GdkEventKey *event)
e_day_view_get_selection_range (day_view, &ico->dtstart, &ico->dtend);
gnome_calendar_add_object (day_view->calendar, ico);
- save_default_calendar (day_view->calendar);
/* gnome_calendar_add_object() should have resulted in a call to
e_day_view_update_event(), so the new event should now be layed out.
@@ -3580,7 +3574,6 @@ e_day_view_on_editing_stopped (EDayView *day_view,
which will reset the event label as appropriate. */
gnome_calendar_object_changed (day_view->calendar, event->ico,
CHANGE_SUMMARY);
- save_default_calendar (day_view->calendar);
}
@@ -4500,7 +4493,6 @@ e_day_view_on_top_canvas_drag_data_received (GtkWidget *widget,
gnome_calendar_object_changed (day_view->calendar,
event->ico,
CHANGE_DATES);
- save_default_calendar (day_view->calendar);
return;
}
@@ -4522,7 +4514,7 @@ e_day_view_on_main_canvas_drag_data_received (GtkWidget *widget,
{
EDayViewEvent *event;
EDayViewPosition pos;
- gint day, start_row, end_row, num_rows;
+ gint day, row, start_row, end_row, num_rows, scroll_x, scroll_y;
gchar *event_uid;
g_print ("In e_day_view_on_main_canvas_drag_data_received\n");
@@ -4574,7 +4566,6 @@ e_day_view_on_main_canvas_drag_data_received (GtkWidget *widget,
gnome_calendar_object_changed (day_view->calendar,
event->ico,
CHANGE_DATES);
- save_default_calendar (day_view->calendar);
return;
}
diff --git a/calendar/gui/gncal-todo.c b/calendar/gui/gncal-todo.c
index e00b851df0..c1ed806612 100644
--- a/calendar/gui/gncal-todo.c
+++ b/calendar/gui/gncal-todo.c
@@ -852,6 +852,10 @@ gncal_todo_update (GncalTodo *todo, iCalObject *ico, int flags)
gtk_clist_clear (todo->clist);
+#if 0
+ /* FIXME: this is broken; it should fetch TODO objects, and it should
+ * use ical_object_find_in_string().
+ */
{
/* DELETE
for (list = todo->calendar->cal->todo; list; list = list->next)
@@ -871,6 +875,7 @@ gncal_todo_update (GncalTodo *todo, iCalObject *ico, int flags)
}
g_list_free (uids);
}
+#endif
/* if we are autoresizing then do it now */
if(todo_list_autoresize && todo->clist->rows != 0)