]> git.0d.be Git - empathy.git/commitdiff
empathy_dispatcher_chat_with_contact_id: remove callback argument
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 11 Aug 2010 12:32:02 +0000 (14:32 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Wed, 11 Aug 2010 12:32:02 +0000 (14:32 +0200)
It's unused anyway.

libempathy-gtk/empathy-chat.c
libempathy-gtk/empathy-new-message-dialog.c
libempathy/empathy-dispatcher.c
libempathy/empathy-dispatcher.h
src/empathy-chat-manager.c
src/empathy-chat-window.c

index dd140587cefc715a1893487261d9ae4f09051f5c..399f0cc9bc82e2cdbcc56b2152020d99748f7036 100644 (file)
@@ -248,8 +248,7 @@ reconnected_connection_ready_cb (TpConnection *connection,
        switch (priv->handle_type) {
                case TP_HANDLE_TYPE_CONTACT:
                        empathy_dispatcher_chat_with_contact_id (
-                               connection, priv->id, EMPATHY_DISPATCHER_NON_USER_ACTION,
-                               NULL, NULL);
+                               connection, priv->id, EMPATHY_DISPATCHER_NON_USER_ACTION);
                        break;
                case TP_HANDLE_TYPE_ROOM:
                        empathy_dispatcher_join_muc (connection,
index 21480a787918499eede6f19716667b14adc2acd5..6cdab465487a3ea69f9df5ee8068a72f406b126b 100644 (file)
@@ -71,7 +71,7 @@ empathy_new_message_dialog_response (GtkDialog *dialog, int response_id)
   if (EMP_STR_EMPTY (contact_id) || connection == NULL) goto out;
 
   empathy_dispatcher_chat_with_contact_id (connection, contact_id,
-      gtk_get_current_event_time (), NULL, NULL);
+      gtk_get_current_event_time ());
 
 out:
   gtk_widget_destroy (GTK_WIDGET (dialog));
index 1cec0e9d8e581921f6de67dbe200651d1ad0334f..09630e67467a85a1bbd561e73ba078f1601ece15 100644 (file)
@@ -1309,9 +1309,7 @@ dispatcher_chat_with_contact_id_cb (TpConnection            *connection,
 void
 empathy_dispatcher_chat_with_contact_id (TpConnection *connection,
                                          const gchar *contact_id,
-                                         gint64 timestamp,
-                                         EmpathyDispatcherRequestCb *callback,
-                                         gpointer user_data)
+                                         gint64 timestamp)
 {
   EmpathyDispatcher *self;
   ChatWithContactIdData *data;
@@ -1322,8 +1320,8 @@ empathy_dispatcher_chat_with_contact_id (TpConnection *connection,
   self = empathy_dispatcher_dup_singleton ();
   data = g_slice_new0 (ChatWithContactIdData);
   data->dispatcher = self;
-  data->callback = callback;
-  data->user_data = user_data;
+  data->callback = NULL;
+  data->user_data = NULL;
   data->timestamp = timestamp;
   empathy_tp_contact_factory_get_from_id (connection, contact_id,
       dispatcher_chat_with_contact_id_cb, data, NULL, NULL);
index 1cc39cfbb668c52c0e50a2a471c84fe528590219..d49aa2dad498cd80460ce4f75da57d99b990b750 100644 (file)
@@ -77,9 +77,8 @@ void empathy_dispatcher_create_channel (EmpathyDispatcher *dispatcher,
 /* Requesting 1 to 1 text channels */
 void empathy_dispatcher_chat_with_contact_id (TpConnection *connection,
   const gchar *contact_id,
-  gint64 timestamp,
-  EmpathyDispatcherRequestCb *callback,
-  gpointer user_data);
+  gint64 timestamp);
+
 void  empathy_dispatcher_chat_with_contact (EmpathyContact *contact,
   gint64 timestamp,
   EmpathyDispatcherRequestCb *callback,
index 3c66e36e514a5f54d07cc6207d6aa6f04f7f0401..0a16be90def411161ab642a2c4f0f349206fc695 100644 (file)
@@ -392,7 +392,7 @@ connection_ready_cb (TpConnection *connection,
           EMPATHY_DISPATCHER_NON_USER_ACTION);
       else
         empathy_dispatcher_chat_with_contact_id (connection, data->id,
-            EMPATHY_DISPATCHER_NON_USER_ACTION, NULL, NULL);
+            EMPATHY_DISPATCHER_NON_USER_ACTION);
 
       g_signal_emit (self, signals[CHATS_CHANGED], 0,
           g_queue_get_length (priv->queue));
index e80d38298e974026527fc8738b506c0254ffdfbb..93c1ab773b090f72c656d9c93b47d7f6bcf5ed4a 100644 (file)
@@ -1744,7 +1744,7 @@ chat_window_drag_data_received (GtkWidget        *widget,
 
                        if (connection) {
                                empathy_dispatcher_chat_with_contact_id (
-                                       connection, contact_id, gtk_get_current_event_time (), NULL, NULL);
+                                       connection, contact_id, gtk_get_current_event_time ());
                        }
 
                        g_strfreev (strv);