aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/gnome-cal.c
diff options
context:
space:
mode:
authorChenthill Palanisamy <pchenthill@novell.com>2005-02-18 13:41:06 +0800
committerChenthill Palanisamy <pchen@src.gnome.org>2005-02-18 13:41:06 +0800
commitede8a754351774324424cc1b35f3f9c8806f3935 (patch)
tree867fb0127336308af591864b5e5149ce8bff737e /calendar/gui/gnome-cal.c
parent1002434f5c9bb90665904946ce535e967ffbfd85 (diff)
downloadgsoc2013-evolution-ede8a754351774324424cc1b35f3f9c8806f3935.tar.gz
gsoc2013-evolution-ede8a754351774324424cc1b35f3f9c8806f3935.tar.zst
gsoc2013-evolution-ede8a754351774324424cc1b35f3f9c8806f3935.zip
added a boolean variable is_meeting. added a boolean variable
2005-02-18 Chenthill Palanisamy <pchenthill@novell.com> * _EventPagePrivate: added a boolean variable is_meeting. * _TaskPagePrivate: added a boolean variable is_assignment. * gui/dialogs/task-page.h: * gui/dialogs/event-page.h: Added a function to set the is_meeting boolean variable. * gui/dialogs/event-editor.c: (show_meeting): * gui/dialogs/task-editor.c: (show_assignment): Called the function to set the boolean variable. * gui/dialogs/event-page.c: (event_page_init), (event_page_set_meeting), (source_changed_cb): * gui/dialogs/task-page.c: (task_page_init), (task_page_set_assignment), (source_changed_cb): If the source is changed and only if its a group event show the send options frame. * gui/gnome-cal.c: (client_cal_opened_cb): Do not popup the offline error dialog for tasks. svn path=/trunk/; revision=28809
Diffstat (limited to 'calendar/gui/gnome-cal.c')
-rw-r--r--calendar/gui/gnome-cal.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/calendar/gui/gnome-cal.c b/calendar/gui/gnome-cal.c
index f2805061a9..3a85a4a89f 100644
--- a/calendar/gui/gnome-cal.c
+++ b/calendar/gui/gnome-cal.c
@@ -2170,7 +2170,6 @@ client_cal_opened_cb (ECal *ecal, ECalendarStatus status, GnomeCalendar *gcal)
ECalSourceType source_type;
ESource *source;
char *msg;
- const char *id;
int i;
priv = gcal->priv;
@@ -2180,11 +2179,9 @@ client_cal_opened_cb (ECal *ecal, ECalendarStatus status, GnomeCalendar *gcal)
switch (source_type) {
case E_CAL_SOURCE_TYPE_EVENT:
- id = "calendar:prompt-no-contents-offline-calendar";
e_calendar_view_set_status_message (E_CALENDAR_VIEW (priv->week_view), NULL);
break;
case E_CAL_SOURCE_TYPE_TODO:
- id = "calendar:prompt-no-contents-offline-tasks";
e_calendar_table_set_status_message (E_CALENDAR_TABLE (priv->todo), NULL);
break;
default:
@@ -2200,7 +2197,9 @@ client_cal_opened_cb (ECal *ecal, ECalendarStatus status, GnomeCalendar *gcal)
status = E_CALENDAR_STATUS_OK;
break;
case E_CALENDAR_STATUS_REPOSITORY_OFFLINE:
- e_error_run (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (gcal))), id, NULL);
+ if (source_type == E_CAL_SOURCE_TYPE_EVENT)
+ e_error_run (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (gcal))),
+ "calendar:prompt-no-contents-offline-calendar", NULL);
default:
/* Make sure the source doesn't disappear on us */
g_object_ref (source);