From 1341a56ed1347f0762e9d81f4cfc6197c1656f0b Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Thu, 25 Feb 2010 13:32:32 +0100 Subject: Bug #529331 - Deletes appointments when moving to the same calendar --- calendar/gui/dialogs/select-source-dialog.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'calendar/gui/dialogs/select-source-dialog.c') diff --git a/calendar/gui/dialogs/select-source-dialog.c b/calendar/gui/dialogs/select-source-dialog.c index bae86827b9..e517819c6b 100644 --- a/calendar/gui/dialogs/select-source-dialog.c +++ b/calendar/gui/dialogs/select-source-dialog.c @@ -35,7 +35,7 @@ * Implements dialog for allowing user to select a destination source. */ ESource * -select_source_dialog (GtkWindow *parent, ECalSourceType obj_type) +select_source_dialog (GtkWindow *parent, ECalSourceType obj_type, ESource *except_source) { GtkWidget *dialog; ESourceList *source_list; @@ -69,6 +69,9 @@ select_source_dialog (GtkWindow *parent, ECalSourceType obj_type) if (icon_name) gtk_window_set_icon_name (GTK_WINDOW (dialog), icon_name); + if (except_source) + g_object_set_data (G_OBJECT (dialog), "except-source", except_source); + if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK) { selected_source = e_source_selector_dialog_peek_primary_selection (E_SOURCE_SELECTOR_DIALOG (dialog)); if (selected_source) { -- cgit v1.2.3