From e1be3090955405e443fdf7e015cf78304eeb3e1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erick=20P=C3=A9rez=20Castellanos?= Date: Tue, 20 Nov 2012 21:59:13 -0500 Subject: [PATCH] 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 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/gcal-window.c b/src/gcal-window.c index faa598c2..e2ba5a8c 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;