[empathy] empathy_call_factory_new_call_with_streams: no need to pass a EmpathyCallFactory
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [empathy] empathy_call_factory_new_call_with_streams: no need to pass a EmpathyCallFactory
- Date: Tue, 29 Jun 2010 10:45:52 +0000 (UTC)
commit 01e72ff82e7516cf71bdab66e107b8a3df3f1749
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Thu Jun 24 15:34:20 2010 +0200
empathy_call_factory_new_call_with_streams: no need to pass a EmpathyCallFactory
libempathy-gtk/empathy-contact-menu.c | 9 ++-------
libempathy/empathy-call-factory.c | 3 +--
libempathy/empathy-call-factory.h | 3 +--
libempathy/empathy-call-handler.c | 4 ++--
4 files changed, 6 insertions(+), 13 deletions(-)
---
diff --git a/libempathy-gtk/empathy-contact-menu.c b/libempathy-gtk/empathy-contact-menu.c
index 7c18694..9094c68 100644
--- a/libempathy-gtk/empathy-contact-menu.c
+++ b/libempathy-gtk/empathy-contact-menu.c
@@ -245,10 +245,8 @@ static void
empathy_contact_audio_call_menu_item_activated (GtkMenuItem *item,
EmpathyContact *contact)
{
- EmpathyCallFactory *factory;
- factory = empathy_call_factory_get ();
- empathy_call_factory_new_call_with_streams (factory, contact, TRUE, FALSE,
+ empathy_call_factory_new_call_with_streams (contact, TRUE, FALSE,
gtk_get_current_event_time (), NULL, NULL);
}
@@ -278,10 +276,7 @@ static void
empathy_contact_video_call_menu_item_activated (GtkMenuItem *item,
EmpathyContact *contact)
{
- EmpathyCallFactory *factory;
-
- factory = empathy_call_factory_get ();
- empathy_call_factory_new_call_with_streams (factory, contact, TRUE, TRUE,
+ empathy_call_factory_new_call_with_streams (contact, TRUE, TRUE,
gtk_get_current_event_time (), NULL, NULL);
}
diff --git a/libempathy/empathy-call-factory.c b/libempathy/empathy-call-factory.c
index 65ab883..ab32d06 100644
--- a/libempathy/empathy-call-factory.c
+++ b/libempathy/empathy-call-factory.c
@@ -203,8 +203,7 @@ empathy_call_factory_get (void)
* Initiate a new call with @contact.
*/
void
-empathy_call_factory_new_call_with_streams (EmpathyCallFactory *factory,
- EmpathyContact *contact,
+empathy_call_factory_new_call_with_streams (EmpathyContact *contact,
gboolean initial_audio,
gboolean initial_video,
gint64 timestamp,
diff --git a/libempathy/empathy-call-factory.h b/libempathy/empathy-call-factory.h
index b9b812b..56d430e 100644
--- a/libempathy/empathy-call-factory.h
+++ b/libempathy/empathy-call-factory.h
@@ -65,8 +65,7 @@ EmpathyCallFactory *empathy_call_factory_initialise (void);
EmpathyCallFactory *empathy_call_factory_get (void);
-void empathy_call_factory_new_call_with_streams (EmpathyCallFactory *factory,
- EmpathyContact *contact,
+void empathy_call_factory_new_call_with_streams (EmpathyContact *contact,
gboolean initial_audio,
gboolean initial_video,
gint64 timestamp,
diff --git a/libempathy/empathy-call-handler.c b/libempathy/empathy-call-handler.c
index 9ba115a..1f9ab72 100644
--- a/libempathy/empathy-call-handler.c
+++ b/libempathy/empathy-call-handler.c
@@ -484,8 +484,8 @@ empathy_call_handler_start_call (EmpathyCallHandler *handler,
* will be used to create a new EmpathyTpCall. */
g_assert (priv->contact != NULL);
- empathy_call_factory_new_call_with_streams (empathy_call_factory_get (),
- priv->contact, priv->initial_audio, priv->initial_video, timestamp,
+ empathy_call_factory_new_call_with_streams (priv->contact,
+ priv->initial_audio, priv->initial_video, timestamp,
empathy_call_handler_request_cb, handler);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]