diff options
author | JP Rosevear <jpr@ximian.com> | 2001-06-20 07:03:49 +0800 |
---|---|---|
committer | JP Rosevear <jpr@src.gnome.org> | 2001-06-20 07:03:49 +0800 |
commit | ad8fe2fd17d945406291b2ce7a8522d9794ee915 (patch) | |
tree | 4b57e2207ef91a41a89604392ada15713c94b38f | |
parent | 477830f7602e726cacf24fdbfb7d4c648b1a8bcb (diff) | |
download | gsoc2013-evolution-ad8fe2fd17d945406291b2ce7a8522d9794ee915.tar.gz gsoc2013-evolution-ad8fe2fd17d945406291b2ce7a8522d9794ee915.tar.zst gsoc2013-evolution-ad8fe2fd17d945406291b2ce7a8522d9794ee915.zip |
add some needed commas (itip_send_comp): if publishing, don't set the to
2001-06-19 JP Rosevear <jpr@ximian.com>
* gui/itip-utils.c: add some needed commas
(itip_send_comp): if publishing, don't set the to list and show
the message. unless publishing, just send the email
* gui/Makefile.am: remove typo
svn path=/trunk/; revision=10310
-rw-r--r-- | calendar/ChangeLog | 4 | ||||
-rw-r--r-- | calendar/gui/itip-utils.c | 35 |
2 files changed, 31 insertions, 8 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 88954b159d..49c9c0b304 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,5 +1,9 @@ 2001-06-19 JP Rosevear <jpr@ximian.com> + * gui/itip-utils.c: add some needed commas + (itip_send_comp): if publishing, don't set the to list and show + the message. unless publishing, just send the email + * gui/Makefile.am: remove typo 2001-06-19 JP Rosevear <jpr@ximian.com> diff --git a/calendar/gui/itip-utils.c b/calendar/gui/itip-utils.c index 239a16ae00..797d375821 100644 --- a/calendar/gui/itip-utils.c +++ b/calendar/gui/itip-utils.c @@ -1,12 +1,24 @@ /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* - * itip-utils.c - * * Authors: - * Jesse Pavel <jpavel@helixcode.com> - * JP Rosevear <jpr@ximian.com> + * JP Rosevear <jpr@ximian.com> * * Copyright 2001, Ximian, Inc. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 + * USA */ #include <bonobo/bonobo-object.h> @@ -27,9 +39,9 @@ static gchar *itip_methods[] = { "REQUEST", "REPLY", "ADD", - "CANCEL" - "RERESH" - "COUNTER" + "CANCEL", + "RERESH", + "COUNTER", "DECLINECOUNTER" }; @@ -116,6 +128,10 @@ itip_send_comp (CalComponentItipMethod method, CalComponent *comp) switch (method) { case CAL_COMPONENT_METHOD_PUBLISH: + to_list = GNOME_Evolution_Composer_RecipientList__alloc (); + to_list->_maximum = to_list->_length = 0; + break; + case CAL_COMPONENT_METHOD_REQUEST: case CAL_COMPONENT_METHOD_CANCEL: cal_component_get_attendee_list (comp, &attendees); @@ -232,7 +248,10 @@ itip_send_comp (CalComponentItipMethod method, CalComponent *comp) return; } - GNOME_Evolution_Composer_show (composer_server, &ev); + if (method == CAL_COMPONENT_METHOD_PUBLISH) + GNOME_Evolution_Composer_show (composer_server, &ev); + else + GNOME_Evolution_Composer_send (composer_server, &ev); if (ev._major != CORBA_NO_EXCEPTION) { g_warning ("Unable to show the composer while sending iTip message"); |