diff options
Diffstat (limited to 'libempathy-gtk/empathy-account-chooser.h')
-rw-r--r-- | libempathy-gtk/empathy-account-chooser.h | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/libempathy-gtk/empathy-account-chooser.h b/libempathy-gtk/empathy-account-chooser.h index 8d9cb657c..146160380 100644 --- a/libempathy-gtk/empathy-account-chooser.h +++ b/libempathy-gtk/empathy-account-chooser.h @@ -36,6 +36,10 @@ G_BEGIN_DECLS #define EMPATHY_IS_ACCOUNT_CHOOSER_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), EMPATHY_TYPE_ACCOUNT_CHOOSER)) #define EMPATHY_ACCOUNT_CHOOSER_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), EMPATHY_TYPE_ACCOUNT_CHOOSER, EmpathyAccountChooserClass)) +typedef gboolean (* EmpathyAccountChooserFilterFunc) (McAccount *account, + gpointer user_data); + + typedef struct _EmpathyAccountChooser EmpathyAccountChooser; typedef struct _EmpathyAccountChooserClass EmpathyAccountChooserClass; @@ -51,14 +55,15 @@ GType empathy_account_chooser_get_type (void) G_GNUC_CONST; GtkWidget * empathy_account_chooser_new (void); McAccount * empathy_account_chooser_get_account (EmpathyAccountChooser *chooser); gboolean empathy_account_chooser_set_account (EmpathyAccountChooser *chooser, - McAccount *account); -gboolean empathy_account_chooser_get_can_select_all (EmpathyAccountChooser *chooser); - -void empathy_account_chooser_set_can_select_all (EmpathyAccountChooser *chooser, - gboolean can_select_all); + McAccount *account); gboolean empathy_account_chooser_get_has_all_option (EmpathyAccountChooser *chooser); void empathy_account_chooser_set_has_all_option (EmpathyAccountChooser *chooser, - gboolean has_all_option); + gboolean has_all_option); +void empathy_account_chooser_set_filter (EmpathyAccountChooser *chooser, + EmpathyAccountChooserFilterFunc filter, + gpointer user_data); +gboolean empathy_account_chooser_filter_is_connected(McAccount *account, + gpointer user_data); G_END_DECLS |