evolution r34828 - in trunk/calendar: . gui
- From: mcrha svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution r34828 - in trunk/calendar: . gui
- Date: Tue, 15 Jan 2008 10:11:57 +0000 (GMT)
Author: mcrha
Date: Tue Jan 15 10:11:57 2008
New Revision: 34828
URL: http://svn.gnome.org/viewvc/evolution?rev=34828&view=rev
Log:
2008-01-15 Milan Crha <mcrha redhat com>
** Fix for bug #333695
* gui/print.c: (print_attendees): Print attendee name instead of email
address if available.
Modified:
trunk/calendar/ChangeLog
trunk/calendar/gui/print.c
Modified: trunk/calendar/gui/print.c
==============================================================================
--- trunk/calendar/gui/print.c (original)
+++ trunk/calendar/gui/print.c Tue Jan 15 10:11:57 2008
@@ -1015,9 +1015,13 @@
if (tmp)
g_string_append (text, " ");
- /* it's usually in form of "mailto:email domain" */
- tmp = strchr (attendee->value, ':');
- g_string_append (text, tmp ? tmp + 1 : attendee->value);
+ if (attendee->cn && *attendee->cn)
+ g_string_append (text, attendee->cn);
+ else {
+ /* it's usually in form of "mailto:email domain" */
+ tmp = strchr (attendee->value, ':');
+ g_string_append (text, tmp ? tmp + 1 : attendee->value);
+ }
tmp = get_role_as_string (attendee->role);
if (tmp) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]