[gnome-calendar] Added source change notification connections.



commit e1be3090955405e443fdf7e015cf78304eeb3e1f
Author: Erick PÃrez Castellanos <erick red gmail com>
Date:   Tue Nov 20 21:59:13 2012 -0500

    Added source change notification connections.
    
    Added code to GcalWindow to connect notification of change from
    GcalEditDialog to GcalManager methods.

 src/gcal-window.c |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/src/gcal-window.c b/src/gcal-window.c
index faa598c..e2ba5a8 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -1341,7 +1341,7 @@ gcal_window_edit_dialog_responded (GtkDialog *dialog,
 
                   date = gcal_edit_dialog_get_end_date (GCAL_EDIT_DIALOG (dialog));
 
-                  g_debug ("Will change start_date");
+                  g_debug ("Will change end_date");
                   gcal_manager_set_event_end_date (
                        manager,
                        gcal_edit_dialog_peek_source_uid (GCAL_EDIT_DIALOG (dialog)),
@@ -1369,6 +1369,20 @@ gcal_window_edit_dialog_responded (GtkDialog *dialog,
                        gcal_edit_dialog_peek_event_uid (GCAL_EDIT_DIALOG (dialog)),
                        new_desc);
                   g_free (new_desc);
+                  break;
+                }
+              case EVENT_SOURCE:
+                {
+                  gchar *new_uid;
+
+                  new_uid = gcal_edit_dialog_get_new_source_uid (GCAL_EDIT_DIALOG (dialog));
+                  gcal_manager_move_event_to_source (
+                       manager,
+                       gcal_edit_dialog_peek_source_uid (GCAL_EDIT_DIALOG (dialog)),
+                       gcal_edit_dialog_peek_event_uid (GCAL_EDIT_DIALOG (dialog)),
+                       new_uid);
+                  g_free (new_uid);
+                  break;
                 }
               default:
                 break;



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