aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-call-handler.c
diff options
context:
space:
mode:
authorJonathan Tellier <jonathan.tellier@gmail.com>2009-06-06 02:56:09 +0800
committerjtellier <jonathan.tellier@collabora.co.uk>2009-06-12 20:59:10 +0800
commitc5c09d7a6a0161b66f1747e3496cb1365f6f35bc (patch)
treeac435fe3e11633393cc9b0811a34375a51625a9f /libempathy/empathy-call-handler.c
parentd9a8b7a80525e4faa908c5eb0bf1f8fb89c49dfe (diff)
downloadgsoc2013-empathy-c5c09d7a6a0161b66f1747e3496cb1365f6f35bc.tar
gsoc2013-empathy-c5c09d7a6a0161b66f1747e3496cb1365f6f35bc.tar.gz
gsoc2013-empathy-c5c09d7a6a0161b66f1747e3496cb1365f6f35bc.tar.bz2
gsoc2013-empathy-c5c09d7a6a0161b66f1747e3496cb1365f6f35bc.tar.lz
gsoc2013-empathy-c5c09d7a6a0161b66f1747e3496cb1365f6f35bc.tar.xz
gsoc2013-empathy-c5c09d7a6a0161b66f1747e3496cb1365f6f35bc.tar.zst
gsoc2013-empathy-c5c09d7a6a0161b66f1747e3496cb1365f6f35bc.zip
Not creating the video preview if we don't want to show it (in audio
calls for instance).
Diffstat (limited to 'libempathy/empathy-call-handler.c')
-rw-r--r--libempathy/empathy-call-handler.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/libempathy/empathy-call-handler.c b/libempathy/empathy-call-handler.c
index 6d7f35102..e5203f5fb 100644
--- a/libempathy/empathy-call-handler.c
+++ b/libempathy/empathy-call-handler.c
@@ -617,4 +617,21 @@ empathy_call_handler_stop_call (EmpathyCallHandler *handler)
}
priv->call = NULL;
+}
+
+/**
+ * empathy_call_handler_has_initial_video:
+ * @handler: an #EmpathyCallHandler
+ *
+ * Determines if the call managed by this #EmpathyCallHandler was created as
+ * a video conversation.
+ *
+ * Return value: TRUE if the call was created as a video conversation.
+ */
+gboolean
+empathy_call_handler_has_initial_video (EmpathyCallHandler *handler)
+{
+ EmpathyCallHandlerPriv *priv = GET_PRIV (handler);
+
+ return priv->initial_video;
} \ No newline at end of file