[evolution-patches] [Hackfest] patch to fix #271523 (evolution/calendar)
- From: Vivek Jain <jvivek novell com>
- To: evolution-patches lists ximian com
- Subject: [evolution-patches] [Hackfest] patch to fix #271523 (evolution/calendar)
- Date: Thu, 12 May 2005 14:23:07 +0530
Hi,
The attached patch fixes
http://bugzilla.gnome.org/show_bug.cgi?id=271523
The modified file is calendar/gui/dialogs/calendar-setup.c.
I am including a type variable, that may be helpful in carying out
operations specific to the component (calendar/task).
Thanks
Vivek Jain
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2727
diff -u -p -r1.2727 ChangeLog
--- ChangeLog 10 May 2005 08:14:41 -0000 1.2727
+++ ChangeLog 12 May 2005 08:46:55 -0000
@@ -1,3 +1,14 @@
+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): Chnage the label according to the type
+
2005-05-09 Rodrigo Moya <rodrigo novell com>
Fixes #301350
Index: gui/dialogs/calendar-setup.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/dialogs/calendar-setup.c,v
retrieving revision 1.34
diff -u -p -r1.34 calendar-setup.c
--- gui/dialogs/calendar-setup.c 23 Dec 2004 18:12:52 -0000 1.34
+++ gui/dialogs/calendar-setup.c 12 May 2005 08:46:55 -0000
@@ -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, EConf
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 _Gt
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 _G
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]);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]