]> git.0d.be Git - empathy.git/commitdiff
add timestamp arg to empathy_dispatcher_create_channel
authorSjoerd Simons <sjoerd.simons@collabora.co.uk>
Sat, 24 Apr 2010 16:23:02 +0000 (17:23 +0100)
committerSjoerd Simons <sjoerd.simons@collabora.co.uk>
Sat, 24 Apr 2010 18:44:09 +0000 (19:44 +0100)
libempathy/empathy-call-handler.c
libempathy/empathy-call-handler.h
libempathy/empathy-dispatcher.c
libempathy/empathy-dispatcher.h
libempathy/empathy-ft-handler.c
libempathy/empathy-tp-chat.c
src/empathy-call-window.c

index a49baed447109abd071935900b0dad856739f216..ec8b055c20b47cbd3f6eeef6e2919a405a8bdbd3 100644 (file)
@@ -487,7 +487,8 @@ empathy_call_handler_request_cb (EmpathyDispatchOperation *operation,
 }
 
 void
 }
 
 void
-empathy_call_handler_start_call (EmpathyCallHandler *handler)
+empathy_call_handler_start_call (EmpathyCallHandler *handler,
+    gint64 timestamp)
 {
 
   EmpathyCallHandlerPriv *priv = GET_PRIV (handler);
 {
 
   EmpathyCallHandlerPriv *priv = GET_PRIV (handler);
@@ -536,7 +537,7 @@ empathy_call_handler_start_call (EmpathyCallHandler *handler)
   g_hash_table_insert (request, TP_IFACE_CHANNEL ".TargetHandle", value);
 
   empathy_dispatcher_create_channel (dispatcher, connection,
   g_hash_table_insert (request, TP_IFACE_CHANNEL ".TargetHandle", value);
 
   empathy_dispatcher_create_channel (dispatcher, connection,
-    request, empathy_call_handler_request_cb, handler);
+    request, timestamp, empathy_call_handler_request_cb, handler);
 
   g_object_unref (dispatcher);
 }
 
   g_object_unref (dispatcher);
 }
index 1f67fe56bfc6bfec67b1264d1575b21d8e13b3b5..f0be11ba5d1352f55d4ccc55e85847e324ea0eae 100644 (file)
@@ -70,7 +70,8 @@ EmpathyCallHandler * empathy_call_handler_new_for_contact_with_streams (
 EmpathyCallHandler * empathy_call_handler_new_for_channel (
   EmpathyTpCall *call);
 
 EmpathyCallHandler * empathy_call_handler_new_for_channel (
   EmpathyTpCall *call);
 
-void empathy_call_handler_start_call (EmpathyCallHandler *handler);
+void empathy_call_handler_start_call (EmpathyCallHandler *handler,
+    gint64 timestamp);
 void empathy_call_handler_stop_call (EmpathyCallHandler *handler);
 
 gboolean empathy_call_handler_has_initial_video (EmpathyCallHandler *handler);
 void empathy_call_handler_stop_call (EmpathyCallHandler *handler);
 
 gboolean empathy_call_handler_has_initial_video (EmpathyCallHandler *handler);
index a8bc25838420fa6cf100c7f5baa62508da683b54..70c56b6ab98b7891b1f0729f183c162c911d694b 100644 (file)
@@ -1662,6 +1662,7 @@ void
 empathy_dispatcher_create_channel (EmpathyDispatcher *self,
                                    TpConnection *connection,
                                    GHashTable *request,
 empathy_dispatcher_create_channel (EmpathyDispatcher *self,
                                    TpConnection *connection,
                                    GHashTable *request,
+                                   gint64 timestamp,
                                    EmpathyDispatcherRequestCb *callback,
                                    gpointer user_data)
 {
                                    EmpathyDispatcherRequestCb *callback,
                                    gpointer user_data)
 {
@@ -1690,8 +1691,8 @@ empathy_dispatcher_create_channel (EmpathyDispatcher *self,
   handle = tp_asv_get_uint32 (request, TP_IFACE_CHANNEL ".TargetHandle", NULL);
 
   request_data  = new_dispatcher_request_data (self, connection,
   handle = tp_asv_get_uint32 (request, TP_IFACE_CHANNEL ".TargetHandle", NULL);
 
   request_data  = new_dispatcher_request_data (self, connection,
-    channel_type, handle_type, handle, request,
-    EMPATHY_DISPATCHER_NON_USER_ACTION, NULL, callback, user_data);
+    channel_type, handle_type, handle, request, timestamp,
+    NULL, callback, user_data);
 
   connection_data->outstanding_requests = g_list_prepend
     (connection_data->outstanding_requests, request_data);
 
   connection_data->outstanding_requests = g_list_prepend
     (connection_data->outstanding_requests, request_data);
index 846fdefeeb0a0e0b4d1218b0b163ff959389b736..3173072c6733936c7ae3adeaf01020fb573133ac 100644 (file)
@@ -67,8 +67,11 @@ typedef void (EmpathyDispatcherFindChannelClassCb) (
 GType empathy_dispatcher_get_type (void) G_GNUC_CONST;
 
 void empathy_dispatcher_create_channel (EmpathyDispatcher *dispatcher,
 GType empathy_dispatcher_get_type (void) G_GNUC_CONST;
 
 void empathy_dispatcher_create_channel (EmpathyDispatcher *dispatcher,
-  TpConnection *connection, GHashTable *request,
-  EmpathyDispatcherRequestCb *callback, gpointer user_data);
+  TpConnection *connection,
+  GHashTable *request,
+  gint64 timestamp,
+  EmpathyDispatcherRequestCb *callback,
+  gpointer user_data);
 
 /* Requesting 1 to 1 text channels */
 void empathy_dispatcher_chat_with_contact_id (TpConnection *connection,
 
 /* Requesting 1 to 1 text channels */
 void empathy_dispatcher_chat_with_contact_id (TpConnection *connection,
index ff3f9322add0a26fe40249a0ad48f0875c349a11..bbc99f61a42bf413856fab82f8223da973699cce 100644 (file)
@@ -757,7 +757,8 @@ ft_handler_push_to_dispatcher (EmpathyFTHandler *handler)
 
   /* I want to own a reference to the request, and destroy it later */
   empathy_dispatcher_create_channel (priv->dispatcher, connection,
 
   /* I want to own a reference to the request, and destroy it later */
   empathy_dispatcher_create_channel (priv->dispatcher, connection,
-      g_hash_table_ref (priv->request), ft_handler_create_channel_cb, handler);
+      g_hash_table_ref (priv->request), EMPATHY_DISPATCHER_NON_USER_ACTION,
+      ft_handler_create_channel_cb, handler);
 }
 
 static void
 }
 
 static void
index 83582741008d486dc97a45ab4f2a8751aa2808d5..cad014df362c64e6f42799014d0b8c65b8a32a38 100644 (file)
@@ -160,7 +160,7 @@ tp_chat_add (EmpathyContactList *list,
                 * valid.
                 * props now belongs to EmpathyDispatcher, don't free it */
                empathy_dispatcher_create_channel (dispatcher, connection,
                 * valid.
                 * props now belongs to EmpathyDispatcher, don't free it */
                empathy_dispatcher_create_channel (dispatcher, connection,
-                               props, NULL, NULL);
+                               props, EMPATHY_DISPATCHER_NON_USER_ACTION, NULL, NULL);
 
                g_object_unref (dispatcher);
        } else {
 
                g_object_unref (dispatcher);
        } else {
index 943e2cd0f84f77b0981d6335b82d44be73c3227a..153da4689d02a0548db0e93143859f15bba63830 100644 (file)
@@ -2387,7 +2387,8 @@ start_call (EmpathyCallWindow *self)
   EmpathyCallWindowPriv *priv = GET_PRIV (self);
 
   priv->call_started = TRUE;
   EmpathyCallWindowPriv *priv = GET_PRIV (self);
 
   priv->call_started = TRUE;
-  empathy_call_handler_start_call (priv->handler);
+  empathy_call_handler_start_call (priv->handler,
+      gtk_get_current_event_time ());
 
   if (empathy_call_handler_has_initial_video (priv->handler))
     {
 
   if (empathy_call_handler_has_initial_video (priv->handler))
     {