aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Pavel <jpavel@src.gnome.org>2000-10-21 12:01:50 +0800
committerJesse Pavel <jpavel@src.gnome.org>2000-10-21 12:01:50 +0800
commitcfa0f85ab441447009b96f97cd94f4cfb026abef (patch)
treeb1693cdfa65c1bb4f817bcd77a2e3b0d3c6dfcb5
parenta1ce50b1b3a0867a6297ee54326fa51c03ebcbb4 (diff)
downloadgsoc2013-evolution-cfa0f85ab441447009b96f97cd94f4cfb026abef.tar
gsoc2013-evolution-cfa0f85ab441447009b96f97cd94f4cfb026abef.tar.gz
gsoc2013-evolution-cfa0f85ab441447009b96f97cd94f4cfb026abef.tar.bz2
gsoc2013-evolution-cfa0f85ab441447009b96f97cd94f4cfb026abef.tar.lz
gsoc2013-evolution-cfa0f85ab441447009b96f97cd94f4cfb026abef.tar.xz
gsoc2013-evolution-cfa0f85ab441447009b96f97cd94f4cfb026abef.tar.zst
gsoc2013-evolution-cfa0f85ab441447009b96f97cd94f4cfb026abef.zip
added more (working) integration with the
meeting schedular. svn path=/trunk/; revision=6096
-rw-r--r--calendar/ChangeLog15
-rw-r--r--calendar/cal-util/cal-component.c6
-rw-r--r--calendar/gui/e-meeting-edit.c45
3 files changed, 29 insertions, 37 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog
index 76a6ce2c0c..bb846fb265 100644
--- a/calendar/ChangeLog
+++ b/calendar/ChangeLog
@@ -1,3 +1,17 @@
+2000-10-20 Jesse Pavel <jpavel@helixcode.com>
+
+ * gui/e-meeting-editor.c: added more (working) integration with the
+ meeting schedular.
+
+2000-10-20 Jesse Pavel <jpavel@helixcode.com>
+
+ * cal-utils/cal-component.c: in set_datetime(), I put an #if 0'd portion
+ of the code back into operation, because the icalproperty_remove_parameter()
+ function is now implemented.
+
+ * gui/e-meeting-editor.c: added more (unworking) integration with the
+ meeting schedular.
+
2000-10-20 JP Rosevear <jpr@helixcode.com>
* pcs/cal-backend.c (cal_backend_destroy): New destroy
@@ -81,6 +95,7 @@
to 1 rather than 0, so if you move the hpane you'll see the date
navigator.
+>>>>>>> 1.631
2000-10-19 Jesse Pavel <jpavel@helixcode.com>
* gui/event-editor.[ch]: added a public function which causes the
diff --git a/calendar/cal-util/cal-component.c b/calendar/cal-util/cal-component.c
index 42185fec4f..35ec603dd2 100644
--- a/calendar/cal-util/cal-component.c
+++ b/calendar/cal-util/cal-component.c
@@ -1633,11 +1633,8 @@ set_datetime (CalComponent *comp, struct datetime *datetime,
icalproperty_add_parameter (datetime->prop, datetime->tzid_param);
}
} else if (datetime->tzid_param) {
-#if 0
- /* FIXME: this fucking routine will assert(0) since it is not implemented */
icalproperty_remove_parameter (datetime->prop, ICAL_TZID_PARAMETER);
icalparameter_free (datetime->tzid_param);
-#endif
datetime->tzid_param = NULL;
}
}
@@ -2837,11 +2834,8 @@ cal_component_set_summary (CalComponent *comp, CalComponentText *summary)
priv->summary.altrep_param);
}
} else if (priv->summary.altrep_param) {
-#if 0
- /* FIXME: this fucking routine will assert(0) since it is not implemented */
icalproperty_remove_parameter (priv->summary.prop, ICAL_ALTREP_PARAMETER);
icalparameter_free (priv->summary.altrep_param);
-#endif
priv->summary.altrep_param = NULL;
}
}
diff --git a/calendar/gui/e-meeting-edit.c b/calendar/gui/e-meeting-edit.c
index 5564a3affb..6873288c01 100644
--- a/calendar/gui/e-meeting-edit.c
+++ b/calendar/gui/e-meeting-edit.c
@@ -433,12 +433,9 @@ schedule_button_clicked_cb (GtkWidget *widget, gpointer data)
if (button_num == 0) {
/* The user clicked "Set Time". */
- CalComponentDateTime dtstart, dtend;
gint start_year, start_month, start_day, start_hour, start_minute,
end_year, end_month, end_day, end_hour, end_minute;
CalComponentDateTime cal_dtstart, cal_dtend;
- struct tm tmstart, tmend;
- time_t timet, timet_start, timet_end;
e_meeting_time_selector_get_meeting_time (mts,
@@ -456,35 +453,19 @@ schedule_button_clicked_cb (GtkWidget *widget, gpointer data)
cal_component_get_dtstart (priv->comp, &cal_dtstart);
cal_component_get_dtend (priv->comp, &cal_dtend);
+ cal_dtstart.value->second = 0;
+ cal_dtstart.value->minute = start_minute;
+ cal_dtstart.value->hour = start_hour;
+ cal_dtstart.value->day = start_day;
+ cal_dtstart.value->month = start_month;
+ cal_dtstart.value->year = start_year;
- timet = time (NULL);
- tmstart = tmend = *(localtime (&timet));
- tmstart.tm_sec = 0;
- tmstart.tm_min = start_minute;
- tmstart.tm_hour = start_hour;
- tmstart.tm_mday = start_day;
- tmstart.tm_year = start_year;
- /* It seems that we can leave the rest of the struct tm fields
- as they are, because in probing through the mktime.c sources,
- I think that they go unused in that function. */
-
- tmend.tm_sec = 0;
- tmend.tm_min = end_minute;
- tmend.tm_hour = end_hour;
- tmend.tm_mday = end_day;
- tmend.tm_year = end_year;
-
- /* Now we must convert the meeting time selector format into
- the iCal format, and then convert that into the CalComponent
- format; finally, we need to set a new time for the CalComponent,
- and tell the meeting editor widget to reload its child widgets. */
-
-
- timet_start = mktime (&tmstart);
- timet_end = mktime (&tmend);
-
- *(cal_dtstart.value) = icaltime_from_timet (timet_start, TRUE, FALSE);
- *(cal_dtend.value) = icaltime_from_timet (timet_end, TRUE, FALSE);
+ cal_dtend.value->second = 0;
+ cal_dtend.value->minute = end_minute;
+ cal_dtend.value->hour = end_hour;
+ cal_dtend.value->day = end_day;
+ cal_dtend.value->month = end_month;
+ cal_dtend.value->year = end_year;
cal_component_set_dtstart (priv->comp, &cal_dtstart);
cal_component_set_dtend (priv->comp, &cal_dtend);
@@ -493,6 +474,8 @@ schedule_button_clicked_cb (GtkWidget *widget, gpointer data)
cal_component_free_datetime (&cal_dtend);
event_editor_update_widgets (priv->ee);
+
+ priv->dirty = TRUE;
}
gtk_widget_destroy (GTK_WIDGET (dialog));