aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-10-24 20:27:15 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-10-27 19:44:29 +0800
commite220eb6b5dceb755e7858e465e78a46d555555f2 (patch)
treeb1ef2af2bced166c5d01f08657fd16a4b111f2d8 /libempathy-gtk
parent40babd776c588ad4a2d8637d0c3bdd06933f3311 (diff)
downloadgsoc2013-empathy-e220eb6b5dceb755e7858e465e78a46d555555f2.tar
gsoc2013-empathy-e220eb6b5dceb755e7858e465e78a46d555555f2.tar.gz
gsoc2013-empathy-e220eb6b5dceb755e7858e465e78a46d555555f2.tar.bz2
gsoc2013-empathy-e220eb6b5dceb755e7858e465e78a46d555555f2.tar.lz
gsoc2013-empathy-e220eb6b5dceb755e7858e465e78a46d555555f2.tar.xz
gsoc2013-empathy-e220eb6b5dceb755e7858e465e78a46d555555f2.tar.zst
gsoc2013-empathy-e220eb6b5dceb755e7858e465e78a46d555555f2.zip
move pre-defined filter at the end of the files
https://bugzilla.gnome.org/show_bug.cgi?id=662609
Diffstat (limited to 'libempathy-gtk')
-rw-r--r--libempathy-gtk/empathy-account-chooser.c54
-rw-r--r--libempathy-gtk/empathy-account-chooser.h6
2 files changed, 32 insertions, 28 deletions
diff --git a/libempathy-gtk/empathy-account-chooser.c b/libempathy-gtk/empathy-account-chooser.c
index 8b0359276..289170d15 100644
--- a/libempathy-gtk/empathy-account-chooser.c
+++ b/libempathy-gtk/empathy-account-chooser.c
@@ -945,6 +945,34 @@ empathy_account_chooser_set_filter (EmpathyAccountChooser *self,
* Return value: whether the account indicated by @account is visible.
*/
+gboolean
+empathy_account_chooser_is_ready (EmpathyAccountChooser *self)
+{
+ return self->priv->ready;
+}
+
+TpAccount *
+empathy_account_chooser_get_account (EmpathyAccountChooser *self)
+{
+ TpAccount *account;
+
+ account = empathy_account_chooser_dup_account (self);
+ if (account == NULL)
+ return NULL;
+
+ g_object_unref (account);
+
+ return account;
+}
+
+TpAccountManager *
+empathy_account_chooser_get_account_manager (EmpathyAccountChooser *self)
+{
+ return self->priv->manager;
+}
+
+/* Pre-defined filters */
+
/**
* empathy_account_chooser_filter_is_connected:
* @account: a #TpAccount
@@ -1007,29 +1035,3 @@ empathy_account_chooser_filter_supports_chatrooms (TpAccount *account,
out:
callback (supported, callback_data);
}
-
-gboolean
-empathy_account_chooser_is_ready (EmpathyAccountChooser *self)
-{
- return self->priv->ready;
-}
-
-TpAccount *
-empathy_account_chooser_get_account (EmpathyAccountChooser *self)
-{
- TpAccount *account;
-
- account = empathy_account_chooser_dup_account (self);
- if (account == NULL)
- return NULL;
-
- g_object_unref (account);
-
- return account;
-}
-
-TpAccountManager *
-empathy_account_chooser_get_account_manager (EmpathyAccountChooser *self)
-{
- return self->priv->manager;
-}
diff --git a/libempathy-gtk/empathy-account-chooser.h b/libempathy-gtk/empathy-account-chooser.h
index 9459b29b3..ac67a28e4 100644
--- a/libempathy-gtk/empathy-account-chooser.h
+++ b/libempathy-gtk/empathy-account-chooser.h
@@ -106,6 +106,10 @@ void empathy_account_chooser_set_filter (EmpathyAccountChooser *self,
EmpathyAccountChooserFilterFunc filter,
gpointer user_data);
+gboolean empathy_account_chooser_is_ready (EmpathyAccountChooser *self);
+
+/* Pre-defined filters */
+
void empathy_account_chooser_filter_is_connected (TpAccount *account,
EmpathyAccountChooserFilterResultCallback callback,
gpointer callback_data,
@@ -116,8 +120,6 @@ void empathy_account_chooser_filter_supports_chatrooms (TpAccount *account,
gpointer callback_data,
gpointer user_data);
-gboolean empathy_account_chooser_is_ready (EmpathyAccountChooser *self);
-
G_END_DECLS
#endif /* __EMPATHY_ACCOUNT_CHOOSER_H__ */