TpAccountManager *account_manager;
EmpathyConnectionManagers *cms;
+ EmpathyConnectivity *connectivity;
GtkWindow *parent_window;
TpAccount *initial_selection;
guint status;
guint reason;
guint presence;
- EmpathyConnectivity *connectivity;
GtkTreeView *view;
GtkTreeModel *model;
GtkTreeSelection *selection;
GTK_MESSAGE_ERROR);
}
- connectivity = empathy_connectivity_dup_singleton ();
- if (!empathy_connectivity_is_online (connectivity))
+ if (!empathy_connectivity_is_online (priv->connectivity))
message = _("Offline — No Network Connection");
- g_object_unref (connectivity);
gtk_spinner_stop (GTK_SPINNER (priv->throbber));
gtk_widget_show (priv->image_status);
gtk_widget_hide (priv->throbber);
priv->cms = NULL;
}
+ if (priv->connectivity)
+ {
+ g_object_unref (priv->connectivity);
+ priv->connectivity = NULL;
+ }
+
if (priv->initial_selection != NULL)
g_object_unref (priv->initial_selection);
priv->initial_selection = NULL;
gtk_widget_show (import_dialog);
}
}
+
+ priv->connectivity = empathy_connectivity_dup_singleton ();
}
static void