diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-07-06 18:37:45 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-07-07 16:45:04 +0800 |
commit | 0ee5b6292c89521a3ca52780c3a230199f01ee85 (patch) | |
tree | feaa235cf622feff1ddd06798e6a477bb48ad60b /src/empathy-event-manager.c | |
parent | 32ea1c129259b67d020944b3092a410f8b84908a (diff) | |
download | gsoc2013-empathy-0ee5b6292c89521a3ca52780c3a230199f01ee85.tar gsoc2013-empathy-0ee5b6292c89521a3ca52780c3a230199f01ee85.tar.gz gsoc2013-empathy-0ee5b6292c89521a3ca52780c3a230199f01ee85.tar.bz2 gsoc2013-empathy-0ee5b6292c89521a3ca52780c3a230199f01ee85.tar.lz gsoc2013-empathy-0ee5b6292c89521a3ca52780c3a230199f01ee85.tar.xz gsoc2013-empathy-0ee5b6292c89521a3ca52780c3a230199f01ee85.tar.zst gsoc2013-empathy-0ee5b6292c89521a3ca52780c3a230199f01ee85.zip |
set a title to the room invitation dialog
Diffstat (limited to 'src/empathy-event-manager.c')
-rw-r--r-- | src/empathy-event-manager.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/empathy-event-manager.c b/src/empathy-event-manager.c index 7bad8682a..00f958304 100644 --- a/src/empathy-event-manager.c +++ b/src/empathy-event-manager.c @@ -685,6 +685,7 @@ event_room_channel_process_func (EventPriv *event) { GtkWidget *dialog, *button, *image; TpChannel *channel = event->approval->main_channel; + gchar *title; if (event->approval->dialog != NULL) { @@ -696,6 +697,12 @@ event_room_channel_process_func (EventPriv *event) dialog = gtk_message_dialog_new (NULL, 0, GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, _("Room invitation")); + title = g_strdup_printf (_("Invitation to join %s"), + tp_channel_get_identifier (channel)); + + gtk_window_set_title (GTK_WINDOW (dialog), title); + g_free (title); + gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog), _("%s is inviting you to join %s"), empathy_contact_get_name (event->approval->contact), |