![]() |
![]() |
![]() |
libempathy-gtk Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Implemented Interfaces | Properties |
#include <libempathy-gtk/empathy-account-chooser.h> gboolean (*EmpathyAccountChooserFilterFunc) (McAccount *account, gpointer user_data); EmpathyAccountChooser; GtkWidget * empathy_account_chooser_new (void); gboolean empathy_account_chooser_set_account (EmpathyAccountChooser *chooser, 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); 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);
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkComboBox +----EmpathyAccountChooser
EmpathyAccountChooser implements GtkBuildable, AtkImplementorIface, GtkCellLayout and GtkCellEditable.
EmpathyAccountChooser is a widget which extends GtkComboBox to provide a chooser of available accounts.
gboolean (*EmpathyAccountChooserFilterFunc) (McAccount *account, gpointer user_data);
A function which decides whether the account indicated by account
is visible.
typedef struct _EmpathyAccountChooser EmpathyAccountChooser;
Widget which extends GtkComboBoxEntry to change presence.
GtkWidget * empathy_account_chooser_new (void);
Creates a new EmpathyAccountChooser.
Returns : |
A new EmpathyAccountChooser |
gboolean empathy_account_chooser_set_account (EmpathyAccountChooser *chooser, McAccount *account);
Sets the currently selected account to account
, if it exists in the list.
|
an EmpathyAccountChooser |
|
an McAccount |
Returns : |
whether the chooser was set to account .
|
gboolean empathy_account_chooser_get_has_all_option (EmpathyAccountChooser *chooser);
Returns whether chooser
has the "has-all-option" property
set to true.
|
an EmpathyAccountChooser |
Returns : |
whether chooser has the "has-all-option" property
enabled.
|
void empathy_account_chooser_set_has_all_option (EmpathyAccountChooser *chooser, gboolean has_all_option);
Sets the "has-all-option" property.
|
an EmpathyAccountChooser |
|
a new value for the "has-all-option" property |
void empathy_account_chooser_set_filter (EmpathyAccountChooser *chooser, EmpathyAccountChooserFilterFunc filter, gpointer user_data);
Sets a filter on the chooser
so only accounts that are TRUE
in the eyes
of the filter are visible in the chooser
.
|
an EmpathyAccountChooser |
|
a filter |
|
data to pass to filter , or NULL
|
gboolean empathy_account_chooser_filter_is_connected (McAccount *account, gpointer user_data);
A useful EmpathyAccountChooserFilterFunc that one could pass into
empathy_account_chooser_set_filter()
and only show connected accounts.
"has-all-option"
property"has-all-option" gboolean : Read / Write
Have an additional option in the list to mean all accounts.
Default value: FALSE