diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-11-22 17:04:40 +0800 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2011-11-24 19:29:03 +0800 |
commit | 70ec5dfc46d6177c74139ad84e6a74f521e8b374 (patch) | |
tree | f4dcf03134f55bb8929ca1675fceef67f3cee4a7 /libempathy-gtk/empathy-individual-store-channel.c | |
parent | f13e0c152b9de168c88f6ebde45c8e35e4df4934 (diff) | |
download | gsoc2013-empathy-70ec5dfc46d6177c74139ad84e6a74f521e8b374.tar gsoc2013-empathy-70ec5dfc46d6177c74139ad84e6a74f521e8b374.tar.gz gsoc2013-empathy-70ec5dfc46d6177c74139ad84e6a74f521e8b374.tar.bz2 gsoc2013-empathy-70ec5dfc46d6177c74139ad84e6a74f521e8b374.tar.lz gsoc2013-empathy-70ec5dfc46d6177c74139ad84e6a74f521e8b374.tar.xz gsoc2013-empathy-70ec5dfc46d6177c74139ad84e6a74f521e8b374.tar.zst gsoc2013-empathy-70ec5dfc46d6177c74139ad84e6a74f521e8b374.zip |
add initial_loading() as a virtual method
This allows us to remove setup_idle_id as a protected variable.
https://bugzilla.gnome.org/show_bug.cgi?id=663387
Diffstat (limited to 'libempathy-gtk/empathy-individual-store-channel.c')
-rw-r--r-- | libempathy-gtk/empathy-individual-store-channel.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-individual-store-channel.c b/libempathy-gtk/empathy-individual-store-channel.c index aa9f0e275..75284602b 100644 --- a/libempathy-gtk/empathy-individual-store-channel.c +++ b/libempathy-gtk/empathy-individual-store-channel.c @@ -275,6 +275,16 @@ individual_store_channel_reload_individuals (EmpathyIndividualStore *store) g_ptr_array_unref (members); } +static gboolean +individual_store_channel_initial_loading (EmpathyIndividualStore *store) +{ + EmpathyIndividualStoreChannel *self = EMPATHY_INDIVIDUAL_STORE_CHANNEL ( + store); + + return !tp_proxy_is_prepared (self->priv->channel, + TP_CHANNEL_FEATURE_CONTACTS); +} + static void empathy_individual_store_channel_class_init ( EmpathyIndividualStoreChannelClass *klass) @@ -288,6 +298,7 @@ empathy_individual_store_channel_class_init ( object_class->set_property = individual_store_channel_set_property; store_class->reload_individuals = individual_store_channel_reload_individuals; + store_class->initial_loading = individual_store_channel_initial_loading; g_object_class_install_property (object_class, PROP_CHANNEL, |