[empathy] CameraMenu: use empathy_camera_monitor_new()



commit 9a592ec3ab386ef2f959fb9737ab85c760c03324
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date:   Mon Aug 15 11:33:25 2011 +0100

    CameraMenu: use empathy_camera_monitor_new()
    
    We want to get a new object so that we get ::added upon
    construction for all the cameras. With _dup_singleton() we may
    get an existing object, which would have already fired the
    initial set of ::added signals.

 src/empathy-camera-menu.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/empathy-camera-menu.c b/src/empathy-camera-menu.c
index 9cbb9d4..b38cc5f 100644
--- a/src/empathy-camera-menu.c
+++ b/src/empathy-camera-menu.c
@@ -329,7 +329,7 @@ empathy_camera_menu_constructed (GObject *obj)
       self->priv->anchor_action);
   g_object_unref (self->priv->anchor_action);
 
-  self->priv->camera_monitor = empathy_camera_monitor_dup_singleton ();
+  self->priv->camera_monitor = empathy_camera_monitor_new ();
 
   tp_g_signal_connect_object (self->priv->camera_monitor, "added",
       G_CALLBACK (empathy_camera_menu_camera_added_cb), self, 0);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]