[evolution-patches] Set default color and selection for calendar/tasks
- From: JP Rosevear <jpr novell com>
- To: asdf <evolution-patches lists ximian com>
- Subject: [evolution-patches] Set default color and selection for calendar/tasks
- Date: Tue, 15 Mar 2005 18:45:18 -0500
-JP
--
JP Rosevear <jpr novell com>
Novell, Inc.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2680.2.6
diff -u -r1.2680.2.6 ChangeLog
--- ChangeLog 15 Mar 2005 16:04:32 -0000 1.2680.2.6
+++ ChangeLog 15 Mar 2005 23:37:54 -0000
@@ -1,5 +1,12 @@
2005-03-15 JP Rosevear <jpr novell com>
+ * gui/tasks-component.c (ensure_sources): ensure the color and
+ primary config are set on the personal source
+
+ * gui/calendar-component.c (ensure_sources): ditto
+
+2005-03-15 JP Rosevear <jpr novell com>
+
* gui/itip-utils.c (itip_send_comp): when publishing, the to_list
will always be null so don't error out then
Index: gui/calendar-component.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/calendar-component.c,v
retrieving revision 1.198.2.1
diff -u -r1.198.2.1 calendar-component.c
--- gui/calendar-component.c 8 Mar 2005 05:45:00 -0000 1.198.2.1
+++ gui/calendar-component.c 15 Mar 2005 23:37:55 -0000
@@ -216,6 +216,17 @@
personal_source = e_source_new (_("Personal"), PERSONAL_RELATIVE_URI);
e_source_group_add_source (on_this_computer, personal_source, -1);
+ if (!calendar_config_get_primary_calendar () && !calendar_config_get_calendars_selected ()) {
+ GSList selected;
+
+ calendar_config_set_primary_calendar (e_source_peek_uid (personal_source));
+
+ selected.data = (gpointer)e_source_peek_uid (personal_source);
+ selected.next = NULL;
+ calendar_config_set_calendars_selected (&selected);
+ }
+
+ e_source_set_color (personal_source, 0xBECEDD);
}
if (!on_the_web) {
Index: gui/tasks-component.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/tasks-component.c,v
retrieving revision 1.84
diff -u -r1.84 tasks-component.c
--- gui/tasks-component.c 22 Feb 2005 01:04:51 -0000 1.84
+++ gui/tasks-component.c 15 Mar 2005 23:37:55 -0000
@@ -196,6 +196,17 @@
ESource *source = e_source_new (_("Personal"), PERSONAL_RELATIVE_URI);
e_source_group_add_source (on_this_computer, source, -1);
+ if (!calendar_config_get_primary_tasks () && !calendar_config_get_tasks_selected ()) {
+ GSList selected;
+
+ calendar_config_set_primary_tasks (e_source_peek_uid (source));
+
+ selected.data = (gpointer)e_source_peek_uid (source);
+ selected.next = NULL;
+ calendar_config_set_tasks_selected (&selected);
+ }
+
+ e_source_set_color (source, 0xBECEDD);
personal_source = source;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]