[gnome-calendar] Handled change of end-date of an event.



commit b4f7cee99125339c91990b3a2771e78e95b10315
Author: Erick PÃrez Castellanos <erick red gmail com>
Date:   Sun Nov 18 17:47:49 2012 -0500

    Handled change of end-date of an event.
    
    Added code to GcalWindow to update the event end-date through
    the manager.

 src/gcal-window.c |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-window.c b/src/gcal-window.c
index 2839d61..faa598c 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -1335,6 +1335,21 @@ gcal_window_edit_dialog_responded (GtkDialog *dialog,
                   g_free (date);
                   break;
                 }
+              case EVENT_END_DATE:
+                {
+                  icaltimetype *date;
+
+                  date = gcal_edit_dialog_get_end_date (GCAL_EDIT_DIALOG (dialog));
+
+                  g_debug ("Will change start_date");
+                  gcal_manager_set_event_end_date (
+                       manager,
+                       gcal_edit_dialog_peek_source_uid (GCAL_EDIT_DIALOG (dialog)),
+                       gcal_edit_dialog_peek_event_uid (GCAL_EDIT_DIALOG (dialog)),
+                       date);
+                  g_free (date);
+                  break;
+                }
               case EVENT_LOCATION:
                 g_debug ("Will change location");
                 gcal_manager_set_event_location (



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]