aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-ui-utils.c
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2008-11-22 00:17:38 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-11-22 00:17:38 +0800
commitec002b76b9c76bbc35cec8b18f66c6b45e06cb6a (patch)
treee19e34e58d79a2e28fac12c931d7a0b8781d42f6 /libempathy-gtk/empathy-ui-utils.c
parent8fbbae973ba5067262b9475c5cfef0ce92d57592 (diff)
downloadgsoc2013-empathy-ec002b76b9c76bbc35cec8b18f66c6b45e06cb6a.tar
gsoc2013-empathy-ec002b76b9c76bbc35cec8b18f66c6b45e06cb6a.tar.gz
gsoc2013-empathy-ec002b76b9c76bbc35cec8b18f66c6b45e06cb6a.tar.bz2
gsoc2013-empathy-ec002b76b9c76bbc35cec8b18f66c6b45e06cb6a.tar.lz
gsoc2013-empathy-ec002b76b9c76bbc35cec8b18f66c6b45e06cb6a.tar.xz
gsoc2013-empathy-ec002b76b9c76bbc35cec8b18f66c6b45e06cb6a.tar.zst
gsoc2013-empathy-ec002b76b9c76bbc35cec8b18f66c6b45e06cb6a.zip
Add parameter checks to public functions. (Jonny Lamb)
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=1797
Diffstat (limited to 'libempathy-gtk/empathy-ui-utils.c')
-rw-r--r--libempathy-gtk/empathy-ui-utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index 930dc3baf..abd8702c0 100644
--- a/libempathy-gtk/empathy-ui-utils.c
+++ b/libempathy-gtk/empathy-ui-utils.c
@@ -1581,6 +1581,8 @@ add_file_to_manager (EmpathyTpFile *tp_file,
void
empathy_send_file_with_file_chooser_and_manager (EmpathyContact *contact)
{
+ g_return_if_fail (EMPATHY_IS_CONTACT (contact));
+
empathy_send_file_with_file_chooser (contact,
(EmpathyFileChooserCallback) add_file_to_manager,
empathy_ft_manager_get_default ());