diff options
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r-- | calendar/gui/dialogs/meeting-page.c | 15 | ||||
-rw-r--r-- | calendar/gui/dialogs/meeting-page.h | 9 |
2 files changed, 16 insertions, 8 deletions
diff --git a/calendar/gui/dialogs/meeting-page.c b/calendar/gui/dialogs/meeting-page.c index 3b20831093..22c8f6e05a 100644 --- a/calendar/gui/dialogs/meeting-page.c +++ b/calendar/gui/dialogs/meeting-page.c @@ -382,15 +382,21 @@ meeting_page_fill_widgets (CompEditorPage *page, CalComponent *comp) if (organizer.value != NULL) { const gchar *strip = itip_strip_mailto (organizer.value); - gchar *s = e_utf8_to_gtk_string (priv->existing_organizer, strip); + gchar *s, *string; gtk_widget_hide (priv->organizer_table); gtk_widget_show (priv->existing_organizer_table); gtk_widget_hide (priv->invite); + if (organizer.cn != NULL) + string = g_strdup_printf ("%s <%s>", organizer.cn, strip); + else + string = g_strdup (strip); + s = e_utf8_to_gtk_string (priv->existing_organizer, string); gtk_label_set_text (GTK_LABEL (priv->existing_organizer), s); g_free (s); - + g_free (string); + priv->existing = TRUE; } else { gtk_widget_hide (priv->other_organizer_lbl); @@ -655,11 +661,12 @@ other_clicked_cb (GtkWidget *widget, gpointer data) mpage = MEETING_PAGE (data); priv = mpage->priv; + gtk_widget_hide (priv->organizer_lbl); + gtk_widget_hide (priv->organizer); + gtk_widget_hide (priv->other_organizer_btn); gtk_widget_show (priv->other_organizer_lbl); gtk_widget_show (priv->other_organizer); - gtk_label_set_text (GTK_LABEL (priv->organizer_lbl), _("Sent By:")); - priv->other = TRUE; } diff --git a/calendar/gui/dialogs/meeting-page.h b/calendar/gui/dialogs/meeting-page.h index 206ee90bb8..b2503f7018 100644 --- a/calendar/gui/dialogs/meeting-page.h +++ b/calendar/gui/dialogs/meeting-page.h @@ -52,10 +52,11 @@ typedef struct { } MeetingPageClass; -GtkType meeting_page_get_type (void); -MeetingPage *meeting_page_construct (MeetingPage *mpage, EMeetingModel *emm); -MeetingPage *meeting_page_new (EMeetingModel *emm); -CalComponent *meeting_page_get_cancel_comp (MeetingPage *mpage); +GtkType meeting_page_get_type (void); +MeetingPage *meeting_page_construct (MeetingPage *mpage, + EMeetingModel *emm); +MeetingPage *meeting_page_new (EMeetingModel *emm); +CalComponent *meeting_page_get_cancel_comp (MeetingPage *mpage); |