diff options
author | Jonny Lamb <jonnylamb@gnome.org> | 2009-11-06 13:35:31 +0000 |
---|---|---|
committer | Jonny Lamb <jonnylamb@gnome.org> | 2009-11-06 13:37:13 +0000 |
commit | 087e9a69efcec032b6ba181a3f03f1d9bd03cf28 (patch) | |
tree | b111a4cb5dee24e079094b81cf4ae9d2622fad2b /nautilus-sendto-plugin | |
parent | e6e01ab41d84a9b8a8e415cc3705f6d64b9344c1 (diff) | |
download | empathy-087e9a69efcec032b6ba181a3f03f1d9bd03cf28.tar.gz |
nautilus-sendto: don't dup the account manager; it's not needed (closes bug #600961)
Signed-off-by: Jonny Lamb <jonnylamb@gnome.org>
Diffstat (limited to 'nautilus-sendto-plugin')
-rw-r--r-- | nautilus-sendto-plugin/empathy-nautilus-sendto.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/nautilus-sendto-plugin/empathy-nautilus-sendto.c b/nautilus-sendto-plugin/empathy-nautilus-sendto.c index 8560ac774..aae29d54d 100644 --- a/nautilus-sendto-plugin/empathy-nautilus-sendto.c +++ b/nautilus-sendto-plugin/empathy-nautilus-sendto.c @@ -35,42 +35,17 @@ #include <libempathy/empathy-ft-factory.h> #include <libempathy/empathy-ft-handler.h> #include <libempathy/empathy-tp-file.h> -#include <libempathy/empathy-account-manager.h> #include <libempathy-gtk/empathy-contact-selector.h> #include <libempathy-gtk/empathy-ui-utils.h> #include "nautilus-sendto-plugin.h" -static EmpathyAccountManager *acc_manager = NULL; static EmpathyFTFactory *factory = NULL; static guint transfers = 0; static gboolean destroy (NstPlugin *plugin); -static void -handle_account_manager_ready () -{ - TpConnectionPresenceType presence; - - presence = empathy_account_manager_get_global_presence (acc_manager, - NULL, NULL); - - if (presence < TP_CONNECTION_PRESENCE_TYPE_AVAILABLE) - return; -} - -static void -acc_manager_ready_cb (EmpathyAccountManager *am, - GParamSpec *pspec, - gpointer _user_data) -{ - if (!empathy_account_manager_is_ready (am)) - return; - - handle_account_manager_ready (); -} - static gboolean init (NstPlugin *plugin) { @@ -78,14 +53,6 @@ init (NstPlugin *plugin) empathy_gtk_init (); - acc_manager = empathy_account_manager_dup_singleton (); - - if (empathy_account_manager_is_ready (acc_manager)) - handle_account_manager_ready (); - else - g_signal_connect (acc_manager, "notify::ready", - G_CALLBACK (acc_manager_ready_cb), NULL); - return TRUE; } @@ -262,9 +229,6 @@ send_files (NstPlugin *plugin, static gboolean destroy (NstPlugin *plugin) { - if (acc_manager) - g_object_unref (acc_manager); - if (factory) g_object_unref (factory); |