[evolution-patches] Task warning patch
- From: JP Rosevear <jpr novell com>
- To: evolution-patches ximian com
- Subject: [evolution-patches] Task warning patch
- Date: Tue, 03 Aug 2004 13:48:35 -0400
When starting up in the task component, the ecal could initially be null
and then set later.
-JP
--
JP Rosevear <jpr novell com>
Novell, Inc.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/calendar/ChangeLog,v
retrieving revision 1.2471
diff -u -r1.2471 ChangeLog
--- ChangeLog 2 Aug 2004 18:33:39 -0000 1.2471
+++ ChangeLog 3 Aug 2004 17:49:25 -0000
@@ -1,3 +1,9 @@
+2004-08-03 JP Rosevear <jpr novell com>
+
+ * gui/tasks-control.c (tasks_control_sensitize_commands): kill
+ warning by checking if there is a default client first (can happen
+ when first starting up)
+
2004-08-01 JP Rosevear <jpr novell com>
* conduits/todo/todo-conduit.c (todoconduit_load_configuration):
Index: gui/tasks-control.c
===================================================================
RCS file: /cvs/gnome/evolution/calendar/gui/tasks-control.c,v
retrieving revision 1.76
diff -u -r1.76 tasks-control.c
--- gui/tasks-control.c 11 May 2004 19:29:04 -0000 1.76
+++ gui/tasks-control.c 3 Aug 2004 17:49:26 -0000
@@ -139,6 +139,7 @@
{
BonoboUIComponent *uic;
gboolean read_only = TRUE;
+ ECal *ecal;
ECalModel *model;
uic = bonobo_control_get_ui_component (control);
@@ -148,7 +149,9 @@
return;
model = e_calendar_table_get_model (e_tasks_get_calendar_table (tasks));
- e_cal_is_read_only (e_cal_model_get_default_client (model), &read_only, NULL);
+ ecal = e_cal_model_get_default_client (model);
+ if (ecal)
+ e_cal_is_read_only (ecal, &read_only, NULL);
bonobo_ui_component_set_prop (uic, "/commands/TasksOpenTask", "sensitive",
n_selected != 1 ? "0" : "1",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]