diff options
author | Jesse Pavel <jpavel@src.gnome.org> | 2000-11-17 06:05:49 +0800 |
---|---|---|
committer | Jesse Pavel <jpavel@src.gnome.org> | 2000-11-17 06:05:49 +0800 |
commit | 3c47e82fbc246047f2a0e42f70a228acb652eadf (patch) | |
tree | 61169377807bf55250718cadc53f2a6e610b4679 /calendar/gui/e-meeting-edit.c | |
parent | cff5794fb99709b950e8ca4004d74cc9bd924533 (diff) | |
download | gsoc2013-evolution-3c47e82fbc246047f2a0e42f70a228acb652eadf.tar.gz gsoc2013-evolution-3c47e82fbc246047f2a0e42f70a228acb652eadf.tar.zst gsoc2013-evolution-3c47e82fbc246047f2a0e42f70a228acb652eadf.zip |
added cancellation code to our program; people can cancel meetings,
which is the best thing to do for most meetings.
svn path=/trunk/; revision=6594
Diffstat (limited to 'calendar/gui/e-meeting-edit.c')
-rw-r--r-- | calendar/gui/e-meeting-edit.c | 23 |
1 files changed, 20 insertions, 3 deletions
diff --git a/calendar/gui/e-meeting-edit.c b/calendar/gui/e-meeting-edit.c index 6d72ea2c66..bdacb7514b 100644 --- a/calendar/gui/e-meeting-edit.c +++ b/calendar/gui/e-meeting-edit.c @@ -45,7 +45,8 @@ struct _EMeetingEditorPrivate { GtkWidget *organizer_entry; GtkWidget *role_entry; GtkWidget *rsvp_check; - GtkWidget *publish_button, *request_button, *schedule_button; + GtkWidget *publish_button, *request_button, *cancel_button, + *schedule_button; gint changed_signal_id; @@ -469,12 +470,14 @@ schedule_button_clicked_cb (GtkWidget *widget, gpointer data) static gchar *itip_methods[] = { "REQUEST", - "PUBLISH" + "PUBLISH", + "CANCEL" }; enum itip_method_enum { METHOD_REQUEST, - METHOD_PUBLISH + METHOD_PUBLISH, + METHOD_CANCEL }; typedef enum itip_method_enum itip_method_enum; @@ -679,6 +682,16 @@ request_button_clicked_cb (GtkWidget *widget, gpointer data) } +static void +cancel_button_clicked_cb (GtkWidget *widget, gpointer data) +{ + EMeetingEditorPrivate *priv; + + priv = (EMeetingEditorPrivate *) ((EMeetingEditor *)data)->priv; + + send_calendar_info (METHOD_CANCEL, priv); +} + static void @@ -891,6 +904,7 @@ e_meeting_edit (EMeetingEditor *editor) priv->schedule_button = glade_xml_get_widget (priv->xml, "schedule_button"); priv->publish_button = glade_xml_get_widget (priv->xml, "publish_button"); priv->request_button = glade_xml_get_widget (priv->xml, "request_button"); + priv->cancel_button = glade_xml_get_widget (priv->xml, "cancel_button"); gtk_clist_set_column_justification (GTK_CLIST (priv->attendee_list), ROLE_COL, GTK_JUSTIFY_CENTER); gtk_clist_set_column_justification (GTK_CLIST (priv->attendee_list), RSVP_COL, GTK_JUSTIFY_CENTER); @@ -917,6 +931,9 @@ e_meeting_edit (EMeetingEditor *editor) gtk_signal_connect (GTK_OBJECT (priv->request_button), "clicked", GTK_SIGNAL_FUNC (request_button_clicked_cb), editor); + gtk_signal_connect (GTK_OBJECT (priv->cancel_button), "clicked", + GTK_SIGNAL_FUNC (cancel_button_clicked_cb), editor); + add_button = glade_xml_get_widget (priv->xml, "add_button"); delete_button = glade_xml_get_widget (priv->xml, "delete_button"); edit_button = glade_xml_get_widget (priv->xml, "edit_button"); |