From e4fadeb1c99a42f7af613a4b7cd1869ae646456b Mon Sep 17 00:00:00 2001 From: Vivek Jain Date: Thu, 12 May 2005 09:23:22 +0000 Subject: Fixes #271523 2005-05-12 Vivek Jain Fixes #271523 * gui/dialogs/calendar-setup.c: (CalendarSourceDialog): included an ECalSourceType member in the structure (calendar_setup_edit_calendar): set source_type as EVENT (calendar_setup_edit_task_list): set source_type as TODO (eccp_general_offline): Change the label according to the type svn path=/trunk/; revision=29332 --- calendar/ChangeLog | 12 ++++++++++++ calendar/gui/dialogs/calendar-setup.c | 13 +++++++++++-- 2 files changed, 23 insertions(+), 2 deletions(-) diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 96407ed309..722d58e03b 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,7 +1,19 @@ +2005-05-12 Vivek Jain + + Fixes #271523 + + * gui/dialogs/calendar-setup.c: + (CalendarSourceDialog): included an ECalSourceType member in + the structure + (calendar_setup_edit_calendar): set source_type as EVENT + (calendar_setup_edit_task_list): set source_type as TODO + (eccp_general_offline): Change the label according to the type + 2005-05-12 Srinivasa Ragavan * gui/task-component.c (selector_tree_drag_motion): Fixes the bug 269416 It makes the DnD to move tasks instead copying. + 2005-05-09 Rodrigo Moya Fixes #301350 diff --git a/calendar/gui/dialogs/calendar-setup.c b/calendar/gui/dialogs/calendar-setup.c index 5c921a8c3f..53c46a0752 100644 --- a/calendar/gui/dialogs/calendar-setup.c +++ b/calendar/gui/dialogs/calendar-setup.c @@ -32,7 +32,7 @@ #include #include #include - +#include #include "calendar-setup.h" #include "../e-cal-config.h" @@ -55,6 +55,7 @@ struct _CalendarSourceDialog { /* Source group we're creating/editing a source in */ ESourceGroup *source_group; + ECalSourceType *source_type; }; static gboolean @@ -281,7 +282,13 @@ eccp_general_offline (EConfig *ec, EConfigItem *item, struct _GtkWidget *parent, return old; else { row = ((GtkTable*)parent)->nrows; - offline_setting = gtk_check_button_new_with_label (N_("Copy calendar contents locally for offline operation")); + + if (sdialog->source_type == E_CAL_SOURCE_TYPE_EVENT) + offline_setting = gtk_check_button_new_with_label (N_("Copy calendar contents locally for offline operation")); + else if (sdialog->source_type == E_CAL_SOURCE_TYPE_TODO) + + offline_setting = gtk_check_button_new_with_label (N_("Copy task list contents locally for offline operation")); + gtk_widget_show (offline_setting); g_signal_connect (offline_setting, "toggled", G_CALLBACK (offline_status_changed_cb), sdialog); gtk_table_attach (GTK_TABLE (parent), offline_setting, 1, 2, row, row+1, GTK_EXPAND | GTK_FILL, 0, 0, 0); @@ -427,6 +434,7 @@ calendar_setup_edit_calendar (struct _GtkWindow *parent, ESource *source, ESourc e_source_set_absolute_uri (sdialog->source, NULL); e_source_set_group (sdialog->source, sdialog->source_group); + sdialog->source_type = E_CAL_SOURCE_TYPE_EVENT; sdialog->config = ec = e_cal_config_new (E_CONFIG_BOOK, "org.gnome.evolution.calendar.calendarProperties"); for (i = 0; eccp_items[i].path; i++) items = g_slist_prepend (items, &eccp_items[i]); @@ -494,6 +502,7 @@ calendar_setup_edit_task_list (struct _GtkWindow *parent, ESource *source) e_source_set_absolute_uri (sdialog->source, NULL); e_source_set_group (sdialog->source, sdialog->source_group); + sdialog->source_type = E_CAL_SOURCE_TYPE_TODO; sdialog->config = ec = e_cal_config_new (E_CONFIG_BOOK, "org.gnome.evolution.calendar.calendarProperties"); for (i = 0; ectp_items[i].path; i++) items = g_slist_prepend (items, &ectp_items[i]); -- cgit v1.2.3