[gnome-calendar] Fixed ordering of dates in New Event Dialog.
- From: Erick PÃrez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] Fixed ordering of dates in New Event Dialog.
- Date: Wed, 5 Dec 2012 21:54:57 +0000 (UTC)
commit 5a5d01a4d7371a65f74ba4cf660e366d79dec612
Author: Erick PÃrez Castellanos <erick red gmail com>
Date: Sat Dec 1 23:32:01 2012 -0500
Fixed ordering of dates in New Event Dialog.
When the user selected the months backward the dates on the header
of the "New Event" dialog was wrong. The dialog shown "from October 31 to March 01"
src/gcal-year-view.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-year-view.c b/src/gcal-year-view.c
index 0b0e84e..9db6be0 100644
--- a/src/gcal-year-view.c
+++ b/src/gcal-year-view.c
@@ -692,6 +692,14 @@ gcal_year_view_button_release (GtkWidget *widget,
end_date->month = priv->end_mark_cell + 1;
end_date->is_date = 1;
+ if (priv->start_mark_cell > priv->end_mark_cell)
+ {
+ start_date->month = priv->end_mark_cell + 1;
+ end_date->day = icaltime_days_in_month (priv->start_mark_cell + 1,
+ end_date->year);
+ end_date->month = priv->start_mark_cell + 1;
+ }
+
g_signal_emit_by_name (GCAL_VIEW (widget),
"create-event",
start_date, end_date,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]