aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2009-01-31 01:34:35 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-31 01:34:35 +0800
commitf42bc2b73cac265958432c3bfd75d91a80ba7626 (patch)
tree5f5bf825b24ab2bd000624bf0e7008ff8cbbabab /libempathy-gtk
parent92edd6d8a468857a442e16b7d81d48608d9ee7f7 (diff)
downloadgsoc2013-empathy-f42bc2b73cac265958432c3bfd75d91a80ba7626.tar
gsoc2013-empathy-f42bc2b73cac265958432c3bfd75d91a80ba7626.tar.gz
gsoc2013-empathy-f42bc2b73cac265958432c3bfd75d91a80ba7626.tar.bz2
gsoc2013-empathy-f42bc2b73cac265958432c3bfd75d91a80ba7626.tar.lz
gsoc2013-empathy-f42bc2b73cac265958432c3bfd75d91a80ba7626.tar.xz
gsoc2013-empathy-f42bc2b73cac265958432c3bfd75d91a80ba7626.tar.zst
gsoc2013-empathy-f42bc2b73cac265958432c3bfd75d91a80ba7626.zip
Added argument checking to non-static functions.
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk> svn path=/trunk/; revision=2334
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-contact-selector.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-contact-selector.c b/libempathy-gtk/empathy-contact-selector.c
index 1fcc075ff..a8f700197 100644
--- a/libempathy-gtk/empathy-contact-selector.c
+++ b/libempathy-gtk/empathy-contact-selector.c
@@ -56,6 +56,8 @@ empathy_contact_selector_get_selected (EmpathyContactSelector *selector)
EmpathyContact *contact = NULL;
GtkTreeIter iter;
+ g_return_val_if_fail (EMPATHY_IS_CONTACT_SELECTOR (selector), NULL);
+
if (!gtk_combo_box_get_active_iter (GTK_COMBO_BOX (selector), &iter))
return NULL;
@@ -372,5 +374,7 @@ empathy_contact_selector_class_init (EmpathyContactSelectorClass *klass)
EmpathyContactSelector *
empathy_contact_selector_new (EmpathyContactListStore *store)
{
+ g_return_val_if_fail (EMPATHY_IS_CONTACT_LIST_STORE (store), NULL);
+
return g_object_new (EMPATHY_TYPE_CONTACT_SELECTOR, "store", store, NULL);
}