aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVivek Jain <jvivek@novell.com>2005-05-12 17:23:22 +0800
committerJain Vivek <jvivek@src.gnome.org>2005-05-12 17:23:22 +0800
commite4fadeb1c99a42f7af613a4b7cd1869ae646456b (patch)
treec25868684fd92b3b69d807711f4cc29ef8d79bdf
parent31706e6b3c5e505cd4e3015f7880f5ba434e5382 (diff)
downloadgsoc2013-evolution-e4fadeb1c99a42f7af613a4b7cd1869ae646456b.tar
gsoc2013-evolution-e4fadeb1c99a42f7af613a4b7cd1869ae646456b.tar.gz
gsoc2013-evolution-e4fadeb1c99a42f7af613a4b7cd1869ae646456b.tar.bz2
gsoc2013-evolution-e4fadeb1c99a42f7af613a4b7cd1869ae646456b.tar.lz
gsoc2013-evolution-e4fadeb1c99a42f7af613a4b7cd1869ae646456b.tar.xz
gsoc2013-evolution-e4fadeb1c99a42f7af613a4b7cd1869ae646456b.tar.zst
gsoc2013-evolution-e4fadeb1c99a42f7af613a4b7cd1869ae646456b.zip
Fixes #271523
2005-05-12 Vivek Jain <jvivek@novell.com> 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
-rw-r--r--calendar/ChangeLog12
-rw-r--r--calendar/gui/dialogs/calendar-setup.c13
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 <jvivek@novell.com>
+
+ 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 <sragavan@novell.com>
* 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 <rodrigo@novell.com>
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 <libedataserver/e-source-list.h>
#include <libgnome/gnome-i18n.h>
#include <libgnomeui/libgnomeui.h>
-
+#include <libecal/e-cal.h>
#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]);