]> git.0d.be Git - empathy.git/commitdiff
set a title to the room invitation dialog
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Tue, 6 Jul 2010 10:37:45 +0000 (12:37 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 7 Jul 2010 08:45:04 +0000 (10:45 +0200)
src/empathy-event-manager.c

index 7bad8682a14fdf9230f0838e7e3c77e4d257a241..00f9583042afa9246db7f474942daac94c7c9478 100644 (file)
@@ -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),