From 004e78f70d1088c94bdd00e66c96260abe03cae9 Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Sat, 20 Oct 2007 22:07:28 +0000 Subject: To know if an account is connected, use 2007-10-21 Xavier Claessens * libempathy-gtk/empathy-account-chooser.c: * libempathy-gtk/empathy-contact-dialogs.c: * libempathy-gtk/empathy-contact-widget.c: * libempathy-gtk/empathy-contact-widget.h: * libempathy-gtk/empathy-accounts-dialog.c: To know if an account is connected, use mission_control_get_connection_status() instead of mission_control_get_connection(). Update account chooser if an account's status changes or if it get removed. Move account chooser filter func for add-contact's window from EmpathyContactWidget to EmpathyContactDialogs. svn path=/trunk/; revision=384 --- libempathy-gtk/empathy-contact-widget.h | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'libempathy-gtk/empathy-contact-widget.h') diff --git a/libempathy-gtk/empathy-contact-widget.h b/libempathy-gtk/empathy-contact-widget.h index 3a2aed996..e35cf0d9b 100644 --- a/libempathy-gtk/empathy-contact-widget.h +++ b/libempathy-gtk/empathy-contact-widget.h @@ -26,6 +26,7 @@ #include #include +#include "empathy-account-chooser.h" G_BEGIN_DECLS @@ -37,9 +38,12 @@ typedef enum { EMPATHY_CONTACT_WIDGET_EDIT_GROUPS = 1 << 4, } EmpathyContactWidgetFlags; -GtkWidget * empathy_contact_widget_new (EmpathyContact *contact, - EmpathyContactWidgetFlags flags); -EmpathyContact *empathy_contact_widget_get_contact (GtkWidget *widget); +GtkWidget * empathy_contact_widget_new (EmpathyContact *contact, + EmpathyContactWidgetFlags flags); +EmpathyContact *empathy_contact_widget_get_contact (GtkWidget *widget); +void empathy_contact_widget_set_account_filter (GtkWidget *widget, + EmpathyAccountChooserFilterFunc filter, + gpointer user_data); G_END_DECLS -- cgit v1.2.3