aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-week-view.c
diff options
context:
space:
mode:
authorDamon Chaplin <damon@helixcode.com>2000-09-06 08:13:05 +0800
committerDamon Chaplin <damon@src.gnome.org>2000-09-06 08:13:05 +0800
commite8648e48175c1b6d26bff5316c2c7d738245a63c (patch)
treeb6dcd1e5670462fe810b90a601013556d5db2604 /calendar/gui/e-week-view.c
parent6403bd5b4def7c610285d2aaad10e793b321091d (diff)
downloadgsoc2013-evolution-e8648e48175c1b6d26bff5316c2c7d738245a63c.tar.gz
gsoc2013-evolution-e8648e48175c1b6d26bff5316c2c7d738245a63c.tar.zst
gsoc2013-evolution-e8648e48175c1b6d26bff5316c2c7d738245a63c.zip
uses the new TaskEditor dialog.
2000-09-06 Damon Chaplin <damon@helixcode.com> * gui/e-calendar-table.c (e_calendar_table_open_task): uses the new TaskEditor dialog. * gui/dialogs/task-editor.[hc]: * gui/dialogs/task-editor-dialog.glade: updated. Still need to fix the 'Status' property (CalComponent doesn't support it yet), and use a replacement for GnomeDateEdit, since we need to support setting 'None' as the date. 2000-09-04 Damon Chaplin <damon@helixcode.com> * gui/event-editor.c (obj_updated_cb): (obj_removed_cb): compare the updated object's uid with the one we are editing, and just return if it doesn't match. 2000-09-01 Damon Chaplin <damon@helixcode.com> * gui/gnome-cal.c (gnome_calendar_tag_calendar): added check to see if the client has loaded successfully. Gets rid of a few warnings. svn path=/trunk/; revision=5217
Diffstat (limited to 'calendar/gui/e-week-view.c')
-rw-r--r--calendar/gui/e-week-view.c28
1 files changed, 21 insertions, 7 deletions
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index 5c4bbcc312..c9caeff732 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -820,7 +820,7 @@ cal_loaded_cb (CalClient *client, CalClientLoadStatus status, gpointer data)
if (status != CAL_CLIENT_LOAD_SUCCESS)
return;
- e_week_view_reload_events (week_view);
+ e_week_view_queue_reload_events (week_view);
}
/* Callback used when the calendar client tells us that an object changed */
@@ -972,7 +972,7 @@ e_week_view_set_cal_client (EWeekView *week_view,
GTK_SIGNAL_FUNC (obj_removed_cb), week_view);
}
- e_week_view_reload_events (week_view);
+ e_week_view_queue_reload_events (week_view);
}
@@ -1588,7 +1588,7 @@ e_week_view_on_button_press (GtkWidget *widget,
{
gint x, y, day;
-#if 0
+#if 1
g_print ("In e_week_view_on_button_press\n");
#endif
@@ -1610,6 +1610,8 @@ e_week_view_on_button_press (GtkWidget *widget,
if (week_view->pressed_event_num != -1)
return FALSE;
+ g_print ("In e_week_view_on_button_press 2\n");
+
/* Convert the mouse position to a week & day. */
x = event->x;
y = event->y;
@@ -1844,6 +1846,7 @@ e_week_view_reload_events (EWeekView *week_view)
week_view);
}
+ week_view->events_need_reshape = TRUE;
e_week_view_check_layout (week_view);
gtk_widget_queue_draw (week_view->main_canvas);
@@ -1855,9 +1858,15 @@ e_week_view_free_events (EWeekView *week_view)
{
EWeekViewEvent *event;
EWeekViewEventSpan *span;
- gint event_num, span_num;
+ gint event_num, span_num, num_days, day;
- /* FIXME: set any indices into the arrays to -1? */
+ /* Reset all our indices. */
+ week_view->pressed_event_num = -1;
+ week_view->pressed_span_num = -1;
+ week_view->editing_event_num = -1;
+ week_view->editing_span_num = -1;
+ week_view->popup_event_num = -1;
+ week_view->editing_new_event = FALSE;
for (event_num = 0; event_num < week_view->events->len; event_num++) {
event = &g_array_index (week_view->events, EWeekViewEvent,
@@ -1881,6 +1890,12 @@ e_week_view_free_events (EWeekView *week_view)
g_array_free (week_view->spans, TRUE);
week_view->spans = NULL;
}
+
+ /* Clear the number of rows used per day. */
+ num_days = week_view->multi_week_view ? week_view->weeks_shown * 7 : 7;
+ for (day = 0; day <= num_days; day++) {
+ week_view->rows_per_day[day] = 0;
+ }
}
@@ -2553,8 +2568,7 @@ e_week_view_start_editing_event (EWeekView *week_view,
}
-/* This stops the current edit. If accept is TRUE the event summary is update,
- else the edit is cancelled. */
+/* This stops any current edit. */
void
e_week_view_stop_editing_event (EWeekView *week_view)
{
1-1/+0 * Update the default version of GCC in the Ports Collection from GCC 4.7.4gerald2014-09-111-1/+1 * - Upgrade to 1.5;thierry2014-09-021-1/+1 * Chase the upgrade of net/mpich2.thierry2014-08-271-1/+1 * - Upgrade scalapack to 2.0.2 and stagifythierry2014-08-251-0/+1 * Remove NOPORTDOCS and NOPORTEXAMPLES.adamw2014-07-041-4/+2 * 1- Upgrade to 4.10.0: this version is required by french/aster;thierry2014-05-141-21/+25 * Update the default version of GCC used in the Ports Collection fromgerald2014-03-111-1/+1 * Convert all USE_FORTRAN=yes to "USES=fortran, USE_GCC=yes". In most casestijl2014-02-171-1/+1 * Update to libmpc version 1.0.1 which brings the following fixes:gerald2013-10-261-1/+1 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-5/+2 * add math/metis4 to math/Makefile; update math/metis to 5.0.2; add appropriatebf2012-07-091-1/+1 * adjust linking and comments in dependent ports after the math/atlas update;bf2011-11-221-3/+3 * take in some orphansbf2011-07-241-1/+1 * Chase the upgrade of MPICH2.thierry2011-02-261-1/+1 * Chase the upgrade of MPICH2.thierry2010-11-151-0/+1 * - Update to 4.8.4wen2009-12-011-2/+1 * - Chase relocation of net/mpich2thierry2009-11-281-10/+10 * Bump PORTREVISION for everything that sets USE_FORTRAN=yes which nowgerald2009-09-131-1/+1 * Bump PORTREVISION due to change of USE_FORTRAN=yes to GCC 4.3.gerald2009-01-081-0/+1 * Take the MAINTAINER_MODE out of the regression-test target (not for thethierry2008-11-101-4/+2 * Upgrade to 4.8.3.thierry2008-10-271-7/+17 * Now we use USE_FORTRAN=yes to use FORTRAN compiler.maho2007-07-141-5/+2 * Upgrade to MUMPS 4.7.3.thierry2007-05-271-9/+12 * 1. A build fix.maho2007-03-151-12/+15 * * Migrate to gfortran.maho2007-01-131-2/+7 * Migrate to gforntran42.maho2007-01-111-14/+11 * Unmark BROKEN: fixed with gcc-withfortran-4.1.2_20061208.thierry2006-12-111-2/+0 * BROKEN: Does not buildkris2006-12-011-0/+2 * Chase bsd.gcc.mk and remove an extra dependency.thierry2006-10-021-3/+0 * - Switch to MPICH2;thierry2006-07-251-10/+53 * - The version version number has been bumped to 4.6.3.2 within the samethierry2006-07-121-0/+2 * Reset maintainership: Pedro's dev machine has been stolen :-(thierry2006-07-011-1/+1 * Upgrade to 4.6.3. Changes include:thierry2006-06-251-4/+6