[evolution-patches] 61766 Default colors and selection for calendars and tasks
- From: JP Rosevear <jpr novell com>
- To: evolution-patches ximian com
- Subject: [evolution-patches] 61766 Default colors and selection for calendars and tasks
- Date: Tue, 28 Sep 2004 09:36:18 -0400
This patch ensures that the personal and contact sources get colors and
are by default checked on a clean install or a first time upgrade.
-JP
--
JP Rosevear <jpr novell com>
Novell, Inc.
? 55172.patch
? 59194.patch
? 60904.patch
? 61451.patch
? 61766.patch
? 62363.patch
? 62728.patch
? 63865.patch
? 64683.patch
? 65454.patch
? 66158.patch
? 66344.patch
? cal-conduits.patch
? cal-name.patch
? gw-list.patch
? nav-scroll-2.patch
? nav-scroll-3.patch
? nav-scroll.patch
? sync.patch
? system-del.patch
? task-default.patch
? task-warning.patch
? gui/66344.patch
? gui/Helgdagar_2004.ics
? gui/apps_evolution_calendar-2.0.schemas
? gui/cal-comp.patch
? gui/month.patch
? gui/monthview.patch
? gui/nav-scroll.patch
? gui/navigator.patch
? gui/new-editor-2.patch
? gui/new-editor.patch
? gui/old-e-cal-model.h
? gui/old.c
? gui/scroll.patch
? gui/sel.patch
? gui/summary.patch
? gui/temp2.c
? gui/alarm-notify/alarm.patch
? gui/dialogs/alarm-dialog.gladep
? gui/dialogs/alarm-list-dialog.gladep
? gui/dialogs/calendar-setup.gladep
? gui/dialogs/event-page.gladep
? gui/dialogs/meeting-page.gladep
? gui/dialogs/recurrence-page.gladep
? gui/dialogs/temp.c
? gui/dialogs/temp2.c
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2500.2.15
diff -u -p -r1.2500.2.15 ChangeLog
--- ChangeLog 27 Sep 2004 14:10:11 -0000 1.2500.2.15
+++ ChangeLog 28 Sep 2004 13:36:50 -0000
@@ -1,3 +1,13 @@
+2004-09-28 JP Rosevear <jpr novell com>
+
+ Fixes #61766
+
+ * gui/migration.c (create_calendar_contact_source): set a color
+ for the contacts
+ (create_calendar_sources): set a color for the personal source and
+ make in primary and default if nothing else is either
+ (create_task_sources): ditto for tasks personal source
+
2004-09-24 Rodrigo Moya <rodrigo novell com>
Fixes #65599
Index: gui/migration.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/migration.c,v
retrieving revision 1.30
diff -u -p -r1.30 migration.c
--- gui/migration.c 22 Jul 2004 03:02:08 -0000 1.30
+++ gui/migration.c 28 Sep 2004 13:36:51 -0000
@@ -46,6 +46,7 @@
#include <e-util/e-folder-map.h>
#include <libedataserver/e-dbhash.h>
#include <libedataserver/e-xml-hash-utils.h>
+#include "calendar-config.h"
#include "calendar-config-keys.h"
#include "migration.h"
@@ -381,6 +382,7 @@ create_calendar_contact_source (ESourceL
e_source_group_add_source (group, source, -1);
g_object_unref (source);
+ e_source_set_color (source, 0xFED4D3);
e_source_group_set_readonly (group, TRUE);
return group;
@@ -457,7 +459,18 @@ create_calendar_sources (CalendarCompone
/* Create the default Person calendar */
ESource *source = e_source_new (_("Personal"), PERSONAL_RELATIVE_URI);
e_source_group_add_source (*on_this_computer, source, -1);
+
+ if (!calendar_config_get_primary_calendar () && !calendar_config_get_calendars_selected ()) {
+ GSList selected;
+
+ calendar_config_set_primary_calendar (e_source_peek_uid (source));
+ selected.data = (gpointer)e_source_peek_uid (source);
+ selected.next = NULL;
+ calendar_config_set_calendars_selected (&selected);
+ }
+
+ e_source_set_color (source, 0xBECEDD);
*personal_source = source;
}
@@ -540,6 +553,17 @@ create_task_sources (TasksComponent *com
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]