Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
svn path=/trunk/; revision=2357
}
EmpathyContact *
-empathy_contact_selector_get_selected (EmpathyContactSelector *selector)
+empathy_contact_selector_dup_selected (EmpathyContactSelector *selector)
{
EmpathyContactSelectorPriv *priv = GET_PRIV (selector);
EmpathyContact *contact = NULL;
};
GType empathy_contact_selector_get_type (void) G_GNUC_CONST;
-GtkWidget *
-empathy_contact_selector_new (EmpathyContactList *contact_list);
-EmpathyContact *
-empathy_contact_selector_get_selected (EmpathyContactSelector *selector);
+GtkWidget * empathy_contact_selector_new (EmpathyContactList *contact_list);
+
+EmpathyContact * empathy_contact_selector_dup_selected (EmpathyContactSelector *selector);
G_END_DECLS
EmpathyContactSelector *selector = EMPATHY_CONTACT_SELECTOR (data);
EmpathyContact *contact;
- contact = empathy_contact_selector_get_selected (selector);
+ contact = empathy_contact_selector_dup_selected (selector);
if (!contact)
return;
empathy_dispatcher_chat_with_contact (contact, chat_cb, NULL);
+
+ g_object_unref (contact);
}
int main (int argc,