]> git.0d.be Git - empathy.git/commitdiff
use tp_channel_get_identifier in event_room_channel_process_func too
authorGuillaume Desmottes <gdesmott@gnome.org>
Fri, 13 Feb 2009 10:25:51 +0000 (10:25 +0000)
committerXavier Claessens <xclaesse@src.gnome.org>
Fri, 13 Feb 2009 10:25:51 +0000 (10:25 +0000)
From: Guillaume Desmottes <gdesmott@gnome.org>

svn path=/trunk/; revision=2448

src/empathy-event-manager.c

index c463f693f3edd86e347df7143c187e4a903dcb9b..2ab139836f2d9eb2f6643e7e66da8963b8ebbcb5 100644 (file)
@@ -680,9 +680,6 @@ static void
 event_room_channel_process_func (EventPriv *event)
 {
   GtkWidget *dialog, *button, *image;
-  TpHandle room_handle;
-  GArray *handles;
-  gchar **names;
   TpChannel *channel = empathy_dispatch_operation_get_channel (
       event->approval->operation);
 
@@ -692,16 +689,6 @@ event_room_channel_process_func (EventPriv *event)
       return;
     }
 
-  /* get room name */
-  room_handle = tp_channel_get_handle (channel, NULL);
-
-  handles = g_array_new (FALSE, FALSE, sizeof (guint));
-  g_array_append_val (handles, room_handle);
-
-  tp_cli_connection_run_inspect_handles (
-      tp_channel_borrow_connection (channel), -1,
-      TP_HANDLE_TYPE_ROOM, handles, &names, NULL, NULL);
-
   /* create dialog */
   dialog = gtk_message_dialog_new (NULL, 0,
       GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, _("Room invitation"));
@@ -709,7 +696,7 @@ event_room_channel_process_func (EventPriv *event)
   gtk_message_dialog_format_secondary_text (GTK_MESSAGE_DIALOG (dialog),
       _("%s is inviting you to join %s"),
       empathy_contact_get_name (event->approval->contact),
-      *names);
+      tp_channel_get_identifier (channel));
 
   gtk_dialog_set_default_response (GTK_DIALOG (dialog),
       GTK_RESPONSE_OK);
@@ -729,9 +716,6 @@ event_room_channel_process_func (EventPriv *event)
 
   gtk_widget_show (dialog);
 
-  g_array_free (handles, TRUE);
-  g_free (names);
-
   event->approval->dialog = dialog;
 }