diff options
author | Irene Huang <Irene.Huang@sun.com> | 2006-01-23 14:45:03 +0800 |
---|---|---|
committer | Harry Lu <haip@src.gnome.org> | 2006-01-23 14:45:03 +0800 |
commit | c54437a87bfcdb8bffedc0186b5fdaca53dc59b0 (patch) | |
tree | cf7730bfcd96819ab16dc90ad12abd99468554f0 /calendar/gui/e-calendar-view.c | |
parent | bf60b8fe359c3d9f26f45a25f38752d9290a3bca (diff) | |
download | gsoc2013-evolution-c54437a87bfcdb8bffedc0186b5fdaca53dc59b0.tar.gz gsoc2013-evolution-c54437a87bfcdb8bffedc0186b5fdaca53dc59b0.tar.zst gsoc2013-evolution-c54437a87bfcdb8bffedc0186b5fdaca53dc59b0.zip |
Fixes #327958
2006-01-23 Irene Huang <Irene.Huang@sun.com>
Fixes #327958
* gui/e-calendar-view.c: (e_calendar_view_get_tooltips):
Check if ptr==NULL, for special occassion with SunOne
accouts.
svn path=/trunk/; revision=31269
Diffstat (limited to 'calendar/gui/e-calendar-view.c')
-rw-r--r-- | calendar/gui/e-calendar-view.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/calendar/gui/e-calendar-view.c b/calendar/gui/e-calendar-view.c index 2eabbe5901..cb162c6996 100644 --- a/calendar/gui/e-calendar-view.c +++ b/calendar/gui/e-calendar-view.c @@ -2038,9 +2038,16 @@ e_calendar_view_get_tooltips (ECalendarViewEventData *data) char *ptr ; GtkWidget *hbox = gtk_hbox_new (FALSE, 0); ptr = strchr(organiser.value, ':'); - ptr++; - /* To Translators: It will display "Organiser: NameOfTheUser <email@ofuser.com>" */ - tmp = g_strdup_printf (_("Organizer: %s <%s>"), organiser.cn, ptr); + + if (ptr) { + ptr++; + /* To Translators: It will display "Organiser: NameOfTheUser <email@ofuser.com>" */ + tmp = g_strdup_printf (_("Organizer: %s <%s>"), organiser.cn, ptr); + } + else + /* With SunOne accouts, there may be no ':' in organiser.value*/ + tmp = g_strdup_printf (_("Organizer: %s"), organiser.cn); + label = gtk_label_new (tmp); gtk_box_pack_start ((GtkBox *)hbox, label, FALSE, FALSE, 0); ebox = gtk_event_box_new (); |