aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarco Barisione <marco.barisione@collabora.co.uk>2013-05-08 22:14:35 +0800
committerMarco Barisione <marco.barisione@collabora.co.uk>2013-08-20 18:03:05 +0800
commit53a376be8d68d95c30cb66495d42d3c18947473f (patch)
tree456a2dd22c0e58f81396aad2dca31c96e678ea57 /src
parenteaa41abfebc3fbf9c2d6a673940e36a4af008cac (diff)
downloadgsoc2013-empathy-53a376be8d68d95c30cb66495d42d3c18947473f.tar
gsoc2013-empathy-53a376be8d68d95c30cb66495d42d3c18947473f.tar.gz
gsoc2013-empathy-53a376be8d68d95c30cb66495d42d3c18947473f.tar.bz2
gsoc2013-empathy-53a376be8d68d95c30cb66495d42d3c18947473f.tar.lz
gsoc2013-empathy-53a376be8d68d95c30cb66495d42d3c18947473f.tar.xz
gsoc2013-empathy-53a376be8d68d95c30cb66495d42d3c18947473f.tar.zst
gsoc2013-empathy-53a376be8d68d95c30cb66495d42d3c18947473f.zip
connection-managers: move from Empathy to tp-account-widgets
https://bugzilla.gnome.org/show_bug.cgi?id=699492
Diffstat (limited to 'src')
-rw-r--r--src/empathy-accounts-dialog.c12
-rw-r--r--src/empathy-import-dialog.c10
-rw-r--r--src/empathy-import-dialog.h4
-rw-r--r--src/empathy-import-utils.c9
-rw-r--r--src/empathy-import-widget.c10
-rw-r--r--src/empathy-import-widget.h4
6 files changed, 25 insertions, 24 deletions
diff --git a/src/empathy-accounts-dialog.c b/src/empathy-accounts-dialog.c
index 73d67485d..409a9ce38 100644
--- a/src/empathy-accounts-dialog.c
+++ b/src/empathy-accounts-dialog.c
@@ -114,7 +114,7 @@ typedef struct {
TpawAccountSettings *settings_ready;
TpAccountManager *account_manager;
- EmpathyConnectionManagers *cms;
+ TpawConnectionManagers *cms;
GNetworkMonitor *connectivity;
GtkWindow *parent_window;
@@ -2150,11 +2150,11 @@ accounts_dialog_cms_prepare_cb (GObject *source,
GAsyncResult *result,
gpointer user_data)
{
- EmpathyConnectionManagers *cms = EMPATHY_CONNECTION_MANAGERS (source);
+ TpawConnectionManagers *cms = TPAW_CONNECTION_MANAGERS (source);
EmpathyAccountsDialog *dialog = user_data;
EmpathyAccountsDialogPriv *priv = GET_PRIV (dialog);
- if (!empathy_connection_managers_prepare_finish (cms, result, NULL))
+ if (!tpaw_connection_managers_prepare_finish (cms, result, NULL))
goto out;
/* No need to update the settings if we are already preparing one */
@@ -2199,9 +2199,9 @@ accounts_dialog_accounts_setup (EmpathyAccountsDialog *dialog)
}
g_list_free_full (accounts, g_object_unref);
- priv->cms = empathy_connection_managers_dup_singleton ();
+ priv->cms = tpaw_connection_managers_dup_singleton ();
- empathy_connection_managers_prepare_async (priv->cms,
+ tpaw_connection_managers_prepare_async (priv->cms,
accounts_dialog_cms_prepare_cb, dialog);
accounts_dialog_model_select_first (dialog);
@@ -2581,7 +2581,7 @@ empathy_accounts_dialog_show (GtkWindow *parent,
if (selected_account)
{
- if (priv->cms != NULL && empathy_connection_managers_is_ready (priv->cms))
+ if (priv->cms != NULL && tpaw_connection_managers_is_ready (priv->cms))
accounts_dialog_set_selected_account (dialog, selected_account);
else
/* save the selection to set it later when the cms
diff --git a/src/empathy-import-dialog.c b/src/empathy-import-dialog.c
index 5e6fa8d55..9d86dd1de 100644
--- a/src/empathy-import-dialog.c
+++ b/src/empathy-import-dialog.c
@@ -43,7 +43,7 @@ typedef struct {
EmpathyImportWidget *iw;
gboolean show_warning;
- EmpathyConnectionManagers *cms;
+ TpawConnectionManagers *cms;
} EmpathyImportDialogPriv;
G_DEFINE_TYPE (EmpathyImportDialog, empathy_import_dialog, GTK_TYPE_DIALOG)
@@ -241,8 +241,8 @@ empathy_import_dialog_class_init (EmpathyImportDialogClass *klass)
g_object_class_install_property (oclass, PROP_SHOW_WARNING, param_spec);
param_spec = g_param_spec_object ("cms",
- "EmpathyConnectionManagers", "EmpathyConnectionManager",
- EMPATHY_TYPE_CONNECTION_MANAGERS,
+ "TpawConnectionManagers", "EmpathyConnectionManager",
+ TPAW_TYPE_CONNECTION_MANAGERS,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY);
g_object_class_install_property (oclass, PROP_CMS, param_spec);
@@ -252,9 +252,9 @@ empathy_import_dialog_class_init (EmpathyImportDialogClass *klass)
GtkWidget *
empathy_import_dialog_new (GtkWindow *parent,
gboolean warning,
- EmpathyConnectionManagers *cms)
+ TpawConnectionManagers *cms)
{
- g_return_val_if_fail (EMPATHY_IS_CONNECTION_MANAGERS (cms), NULL);
+ g_return_val_if_fail (TPAW_IS_CONNECTION_MANAGERS (cms), NULL);
return g_object_new (EMPATHY_TYPE_IMPORT_DIALOG,
"parent-window", parent,
diff --git a/src/empathy-import-dialog.h b/src/empathy-import-dialog.h
index 87f1198f1..8fce49fcd 100644
--- a/src/empathy-import-dialog.h
+++ b/src/empathy-import-dialog.h
@@ -25,7 +25,7 @@
#ifndef __EMPATHY_IMPORT_DIALOG_H__
#define __EMPATHY_IMPORT_DIALOG_H__
-#include "empathy-connection-managers.h"
+#include <tp-account-widgets/tpaw-connection-managers.h>
G_BEGIN_DECLS
@@ -59,7 +59,7 @@ GType empathy_import_dialog_get_type (void);
GtkWidget* empathy_import_dialog_new (GtkWindow *parent_window,
gboolean show_warning,
- EmpathyConnectionManagers *cms);
+ TpawConnectionManagers *cms);
G_END_DECLS
diff --git a/src/empathy-import-utils.c b/src/empathy-import-utils.c
index c38233647..d95326bc2 100644
--- a/src/empathy-import-utils.c
+++ b/src/empathy-import-utils.c
@@ -22,7 +22,8 @@
#include "config.h"
#include "empathy-import-utils.h"
-#include "empathy-connection-managers.h"
+#include <tp-account-widgets/tpaw-connection-managers.h>
+
#include "empathy-import-pidgin.h"
#include "empathy-utils.h"
@@ -80,13 +81,13 @@ gboolean
empathy_import_protocol_is_supported (const gchar *protocol,
TpConnectionManager **cm)
{
- EmpathyConnectionManagers *manager;
+ TpawConnectionManagers *manager;
GList *cms;
GList *l;
gboolean proto_is_supported = FALSE;
- manager = empathy_connection_managers_dup_singleton ();
- cms = empathy_connection_managers_get_cms (manager);
+ manager = tpaw_connection_managers_dup_singleton ();
+ cms = tpaw_connection_managers_get_cms (manager);
for (l = cms; l; l = l->next)
{
diff --git a/src/empathy-import-widget.c b/src/empathy-import-widget.c
index 86dc95150..0103b6a8f 100644
--- a/src/empathy-import-widget.c
+++ b/src/empathy-import-widget.c
@@ -60,7 +60,7 @@ typedef struct {
GList *accounts;
EmpathyImportApplication app_id;
- EmpathyConnectionManagers *cms;
+ TpawConnectionManagers *cms;
gboolean dispose_run;
} EmpathyImportWidgetPriv;
@@ -464,8 +464,8 @@ empathy_import_widget_class_init (EmpathyImportWidgetClass *klass)
g_object_class_install_property (oclass, PROP_APPLICATION_ID, param_spec);
param_spec = g_param_spec_object ("cms",
- "EmpathyConnectionManagers", "EmpathyConnectionManager",
- EMPATHY_TYPE_CONNECTION_MANAGERS,
+ "TpawConnectionManagers", "TpawConnectionManagers",
+ TPAW_TYPE_CONNECTION_MANAGERS,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS | G_PARAM_CONSTRUCT_ONLY);
g_object_class_install_property (oclass, PROP_CMS, param_spec);
@@ -484,9 +484,9 @@ empathy_import_widget_init (EmpathyImportWidget *self)
EmpathyImportWidget *
empathy_import_widget_new (EmpathyImportApplication id,
- EmpathyConnectionManagers *cms)
+ TpawConnectionManagers *cms)
{
- g_return_val_if_fail (EMPATHY_IS_CONNECTION_MANAGERS (cms), NULL);
+ g_return_val_if_fail (TPAW_IS_CONNECTION_MANAGERS (cms), NULL);
return g_object_new (EMPATHY_TYPE_IMPORT_WIDGET,
"application-id", id,
diff --git a/src/empathy-import-widget.h b/src/empathy-import-widget.h
index 8e9f32f5a..221fa1439 100644
--- a/src/empathy-import-widget.h
+++ b/src/empathy-import-widget.h
@@ -26,8 +26,8 @@
#define __EMPATHY_IMPORT_WIDGET_H__
#include <gtk/gtk.h>
+#include <tp-account-widgets/tpaw-connection-managers.h>
-#include "empathy-connection-managers.h"
#include "empathy-import-utils.h"
G_BEGIN_DECLS
@@ -61,7 +61,7 @@ typedef struct {
GType empathy_import_widget_get_type (void);
EmpathyImportWidget* empathy_import_widget_new (EmpathyImportApplication id,
- EmpathyConnectionManagers *cms);
+ TpawConnectionManagers *cms);
GtkWidget * empathy_import_widget_get_widget (EmpathyImportWidget *self);