aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-08-19 01:13:56 +0800
committerEmilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk>2011-08-19 18:11:02 +0800
commit508b2cd4c64f2a1786a5e969bec208cb867ceb5e (patch)
tree361e237f8226752d5b19ba14d1e876c5c77ee9ca /src
parent08af50eabef5f5a18ced797fd2fd967c08a13198 (diff)
downloadgsoc2013-empathy-508b2cd4c64f2a1786a5e969bec208cb867ceb5e.tar
gsoc2013-empathy-508b2cd4c64f2a1786a5e969bec208cb867ceb5e.tar.gz
gsoc2013-empathy-508b2cd4c64f2a1786a5e969bec208cb867ceb5e.tar.bz2
gsoc2013-empathy-508b2cd4c64f2a1786a5e969bec208cb867ceb5e.tar.lz
gsoc2013-empathy-508b2cd4c64f2a1786a5e969bec208cb867ceb5e.tar.xz
gsoc2013-empathy-508b2cd4c64f2a1786a5e969bec208cb867ceb5e.tar.zst
gsoc2013-empathy-508b2cd4c64f2a1786a5e969bec208cb867ceb5e.zip
CallWindow: make empathy_call_window_play_camera() public
https://bugzilla.gnome.org/show_bug.cgi?id=656579
Diffstat (limited to 'src')
-rw-r--r--src/empathy-call-window.c8
-rw-r--r--src/empathy-call-window.h3
2 files changed, 7 insertions, 4 deletions
diff --git a/src/empathy-call-window.c b/src/empathy-call-window.c
index f5551f566..c17bb649e 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 912a79173..eebb55f69 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__*/