[empathy] CallWindow: make empathy_call_window_play_camera() public



commit 508b2cd4c64f2a1786a5e969bec208cb867ceb5e
Author: Emilio Pozuelo Monfort <emilio pozuelo collabora co uk>
Date:   Thu Aug 18 18:13:56 2011 +0100

    CallWindow: make empathy_call_window_play_camera() public
    
    https://bugzilla.gnome.org/show_bug.cgi?id=656579

 src/empathy-call-window.c |    8 ++++----
 src/empathy-call-window.h |    3 +++
 2 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index f5551f5..c17bb64 100644
--- a/src/empathy-call-window.c
+++ b/src/empathy-call-window.c
@@ -1103,8 +1103,8 @@ create_video_preview (EmpathyCallWindow *self)
   clutter_actor_set_reactive (preview, TRUE);
 }
 
-static void
-play_camera (EmpathyCallWindow *window,
+void
+empathy_call_window_play_camera (EmpathyCallWindow *window,
     gboolean play)
 {
   EmpathyCallWindowPriv *priv = GET_PRIV (window);
@@ -1140,7 +1140,7 @@ display_video_preview (EmpathyCallWindow *self,
       /* Display the video preview */
       DEBUG ("Show video preview");
 
-      play_camera (self, TRUE);
+      empathy_call_window_play_camera (self, TRUE);
       clutter_actor_show (priv->video_preview);
       clutter_actor_raise_top (priv->floating_toolbar);
     }
@@ -1152,7 +1152,7 @@ display_video_preview (EmpathyCallWindow *self,
       if (priv->video_preview != NULL)
         {
           clutter_actor_hide (priv->video_preview);
-          play_camera (self, FALSE);
+          empathy_call_window_play_camera (self, FALSE);
         }
     }
 }
diff --git a/src/empathy-call-window.h b/src/empathy-call-window.h
index 912a791..eebb55f 100644
--- a/src/empathy-call-window.h
+++ b/src/empathy-call-window.h
@@ -69,6 +69,9 @@ GtkUIManager *empathy_call_window_get_ui_manager (EmpathyCallWindow *window);
 EmpathyGstAudioSrc *empathy_call_window_get_audio_src (EmpathyCallWindow *window);
 EmpathyGstVideoSrc *empathy_call_window_get_video_src (EmpathyCallWindow *window);
 
+void empathy_call_window_play_camera (EmpathyCallWindow *self,
+    gboolean play);
+
 G_END_DECLS
 
 #endif /* #ifndef __EMPATHY_CALL_WINDOW_H__*/



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