aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/event-page.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/dialogs/event-page.c
parent1002434f5c9bb90665904946ce535e967ffbfd85 (diff)
downloadgsoc2013-evolution-ede8a754351774324424cc1b35f3f9c8806f3935.tar
gsoc2013-evolution-ede8a754351774324424cc1b35f3f9c8806f3935.tar.gz
gsoc2013-evolution-ede8a754351774324424cc1b35f3f9c8806f3935.tar.bz2
gsoc2013-evolution-ede8a754351774324424cc1b35f3f9c8806f3935.tar.lz
gsoc2013-evolution-ede8a754351774324424cc1b35f3f9c8806f3935.tar.xz
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/dialogs/event-page.c')
-rw-r--r--calendar/gui/dialogs/event-page.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c
index b421d6ee95..f659ad71fe 100644
--- a/calendar/gui/dialogs/event-page.c
+++ b/calendar/gui/dialogs/event-page.c
@@ -104,6 +104,7 @@ struct _EventPagePrivate {
start timezone is then changed, we updated the end timezone to the
same value, since 99% of events start and end in one timezone. */
gboolean sync_timezones;
+ gboolean is_meeting;
};
@@ -178,6 +179,7 @@ event_page_init (EventPage *epage)
priv->updating = FALSE;
priv->sendoptions_shown = FALSE;
+ priv->is_meeting = FALSE;
priv->sync_timezones = FALSE;
}
@@ -660,6 +662,13 @@ event_page_show_options (EventPage *page)
page->priv->sendoptions_shown = TRUE;
}
+void
+event_page_set_meeting (EventPage *page, gboolean set)
+{
+ g_return_if_fail (IS_EVENT_PAGE (page));
+
+ page->priv->is_meeting = set;
+}
/* fill_widgets handler for the event page */
static gboolean
@@ -1676,7 +1685,7 @@ source_changed_cb (GtkWidget *widget, ESource *source, gpointer data)
comp_editor_notify_client_changed (
COMP_EDITOR (gtk_widget_get_toplevel (priv->main)),
client);
- if (e_cal_get_static_capability (client, CAL_STATIC_CAPABILITY_REQ_SEND_OPTIONS))
+ if (e_cal_get_static_capability (client, CAL_STATIC_CAPABILITY_REQ_SEND_OPTIONS) && priv->is_meeting)
event_page_show_options (epage);
else
event_page_hide_options (epage);