[empathy] Fix UOA build



commit 149a905bd95e78f8ba6c1bc35444fba3aabbe28a
Author: Xavier Claessens <xavier claessens collabora co uk>
Date:   Fri Sep 13 17:32:42 2013 -0400

    Fix UOA build

 .../cc-plugins/account-plugins/Makefile.am         |    2 +
 .../empathy-accounts-plugin-widget.c               |   38 ++++++++++----------
 .../account-plugins/empathy-accounts-plugin.c      |    5 ++-
 .../cc-plugins/app-plugin/Makefile.am              |    2 +
 .../app-plugin/empathy-app-plugin-widget.c         |   12 +++---
 5 files changed, 32 insertions(+), 27 deletions(-)
---
diff --git a/ubuntu-online-accounts/cc-plugins/account-plugins/Makefile.am 
b/ubuntu-online-accounts/cc-plugins/account-plugins/Makefile.am
index 1271f6e..0006ced 100644
--- a/ubuntu-online-accounts/cc-plugins/account-plugins/Makefile.am
+++ b/ubuntu-online-accounts/cc-plugins/account-plugins/Makefile.am
@@ -5,6 +5,7 @@ INCLUDES =                                      \
        -I$(top_srcdir)/libempathy              \
        -I$(top_srcdir)/libempathy-gtk          \
        -DLOCALEDIR=\""$(datadir)/locale"\"     \
+       $(TPAW_CFLAGS)                          \
        $(UOA_CFLAGS)                           \
        $(WARN_CFLAGS)                          \
        $(ERROR_CFLAGS)                         \
@@ -23,6 +24,7 @@ libempathy_accounts_plugin_la_SOURCES = \
        empathy-accounts-plugin-widget.h
 
 libempathy_accounts_plugin_la_LIBADD = \
+       $(TPAW_LIBS) \
        $(UOA_LIBS) \
        $(top_builddir)/libempathy/libempathy.la \
        $(top_builddir)/libempathy-gtk/libempathy-gtk.la
diff --git a/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-widget.c 
b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-widget.c
index c0f29e2..8b9dacf 100644
--- a/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-widget.c
+++ b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-widget.c
@@ -21,7 +21,7 @@
 
 #include "config.h"
 
-#include "tpaw-accounts-plugin-widget.h"
+#include "empathy-accounts-plugin-widget.h"
 
 #include <glib/gi18n-lib.h>
 
@@ -30,7 +30,7 @@
 #include <libaccounts-glib/ag-service.h>
 #include <libaccounts-glib/ag-account-service.h>
 
-#include "tpaw-account-widget.h"
+#include <tp-account-widgets/tpaw-account-widget.h>
 
 G_DEFINE_TYPE (EmpathyAccountsPluginWidget, empathy_accounts_plugin_widget, GTK_TYPE_BOX)
 
@@ -52,9 +52,9 @@ struct _EmpathyAccountsPluginWidgetPriv
 {
   AgAccount *account;
 
-  EmpathyAccountSettings *settings;
+  TpawAccountSettings *settings;
 
-  EmpathyAccountWidget *account_widget;
+  TpawAccountWidget *account_widget;
   GtkWidget *done_button;
 };
 
@@ -96,7 +96,7 @@ empathy_accounts_plugin_widget_set_property (GObject *object,
     }
 }
 
-static EmpathyAccountSettings *
+static TpawAccountSettings *
 create_account_settings (AgAccount *account)
 {
   AgService *service;
@@ -104,7 +104,7 @@ create_account_settings (AgAccount *account)
   AgAccountService *account_service;
   GVariant *v;
   gchar *manager = NULL, *protocol = NULL;
-  EmpathyAccountSettings *settings;
+  TpawAccountSettings *settings;
 
   g_assert (account->id == 0);
 
@@ -127,13 +127,13 @@ create_account_settings (AgAccount *account)
   g_return_val_if_fail (manager != NULL, NULL);
   g_return_val_if_fail (protocol != NULL, NULL);
 
-  settings = empathy_account_settings_new (manager, protocol, NULL,
+  settings = tpaw_account_settings_new (manager, protocol, NULL,
       ag_service_get_display_name (service));
 
-  empathy_account_settings_set_storage_provider (settings,
+  tpaw_account_settings_set_storage_provider (settings,
       EMPATHY_UOA_PROVIDER);
 
-  empathy_account_settings_set_icon_name_async (settings,
+  tpaw_account_settings_set_icon_name_async (settings,
     ag_service_get_icon_name (service), NULL, NULL);
 
   g_free (manager);
@@ -155,13 +155,13 @@ response_cb (GtkWidget *widget,
     }
   if (response == GTK_RESPONSE_OK)
     {
-      empathy_account_widget_apply_and_log_in (self->priv->account_widget);
+      tpaw_account_widget_apply_and_log_in (self->priv->account_widget);
 
       /* Rely on account_widget_close_cb to fire the 'done' signal */
     }
   else
     {
-      empathy_account_widget_discard_pending_changes (
+      tpaw_account_widget_discard_pending_changes (
           self->priv->account_widget);
 
       g_signal_emit (self, signals[SIG_DONE], 0);
@@ -222,7 +222,7 @@ create_top_bar (EmpathyAccountsPluginWidget *self)
 }
 
 static void
-account_widget_handle_apply_cb (EmpathyAccountWidget *widget,
+account_widget_handle_apply_cb (TpawAccountWidget *widget,
     gboolean valid,
     EmpathyAccountsPluginWidget *self)
 {
@@ -230,7 +230,7 @@ account_widget_handle_apply_cb (EmpathyAccountWidget *widget,
 }
 
 static void
-account_widget_close_cb (EmpathyAccountWidget *widget,
+account_widget_close_cb (TpawAccountWidget *widget,
     GtkResponseType response,
     EmpathyAccountsPluginWidget *self)
 {
@@ -251,10 +251,10 @@ add_account_widget (EmpathyAccountsPluginWidget *self)
   /* Use the simple widget only when creating the account */
   simple = (self->priv->account->id == 0);
 
-  self->priv->account_widget = empathy_account_widget_new_for_protocol (
-      self->priv->settings, simple);
+  self->priv->account_widget = tpaw_account_widget_new_for_protocol (
+      self->priv->settings, NULL, simple);
 
-  empathy_account_widget_hide_buttons (self->priv->account_widget);
+  tpaw_account_widget_hide_buttons (self->priv->account_widget);
 
   gtk_widget_set_valign (GTK_WIDGET (self->priv->account_widget),
       GTK_ALIGN_CENTER);
@@ -263,7 +263,7 @@ add_account_widget (EmpathyAccountsPluginWidget *self)
       GTK_WIDGET (self->priv->account_widget));
   gtk_widget_show (GTK_WIDGET (self->priv->account_widget));
 
-  if (!empathy_account_settings_is_valid (self->priv->settings))
+  if (!tpaw_account_settings_is_valid (self->priv->settings))
     {
       gtk_widget_set_sensitive (self->priv->done_button, FALSE);
     }
@@ -279,7 +279,7 @@ maybe_add_account_widget (EmpathyAccountsPluginWidget *self)
 {
   g_return_if_fail (self->priv->settings != NULL);
 
-  if (empathy_account_settings_is_ready (self->priv->settings))
+  if (tpaw_account_settings_is_ready (self->priv->settings))
     {
       add_account_widget (self);
     }
@@ -324,7 +324,7 @@ manager_prepared_cb (GObject *source,
       if (G_VALUE_HOLDS_UINT (value) &&
           g_value_get_uint (value) == self->priv->account->id)
         {
-          self->priv->settings = empathy_account_settings_new_for_account (
+          self->priv->settings = tpaw_account_settings_new_for_account (
               account);
           maybe_add_account_widget (self);
           break;
diff --git a/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin.c 
b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin.c
index 1f322ec..6f79f87 100644
--- a/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin.c
+++ b/ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin.c
@@ -20,10 +20,11 @@
 
 #include "config.h"
 
+#include <tp-account-widgets/tpaw-uoa-utils.h>
+
 #include "empathy-accounts-plugin.h"
 
 #include "empathy-client-factory.h"
-#include "empathy-uoa-utils.h"
 
 #include "empathy-accounts-plugin-widget.h"
 
@@ -43,7 +44,7 @@ empathy_accounts_plugin_build_widget (ApPlugin *plugin)
   GtkWidget *widget;
 
   account = ap_plugin_get_account (plugin);
-  empathy_uoa_manager_set_default (ag_account_get_manager (account));
+  tpaw_uoa_manager_set_default (ag_account_get_manager (account));
 
   widget = empathy_accounts_plugin_widget_new (account);
 
diff --git a/ubuntu-online-accounts/cc-plugins/app-plugin/Makefile.am 
b/ubuntu-online-accounts/cc-plugins/app-plugin/Makefile.am
index 801c2d8..16fcd41 100644
--- a/ubuntu-online-accounts/cc-plugins/app-plugin/Makefile.am
+++ b/ubuntu-online-accounts/cc-plugins/app-plugin/Makefile.am
@@ -6,6 +6,7 @@ INCLUDES =                                      \
        -I$(top_srcdir)/libempathy              \
        -I$(top_srcdir)/libempathy-gtk          \
        -DLOCALEDIR=\""$(datadir)/locale"\"     \
+       $(TPAW_CFLAGS)                          \
        $(UOA_CFLAGS)                           \
        $(WARN_CFLAGS)                          \
        $(ERROR_CFLAGS)                         \
@@ -23,6 +24,7 @@ libempathy_la_SOURCES = \
        empathy-app-plugin-widget.h
 libempathy_la_LDFLAGS = -module -avoid-version
 libempathy_la_LIBADD = \
+       $(TPAW_LIBS) \
        $(UOA_LIBS)                                     \
        $(top_builddir)/libempathy/libempathy.la \
        $(top_builddir)/libempathy-gtk/libempathy-gtk.la
diff --git a/ubuntu-online-accounts/cc-plugins/app-plugin/empathy-app-plugin-widget.c 
b/ubuntu-online-accounts/cc-plugins/app-plugin/empathy-app-plugin-widget.c
index 6895a04..addd737 100644
--- a/ubuntu-online-accounts/cc-plugins/app-plugin/empathy-app-plugin-widget.c
+++ b/ubuntu-online-accounts/cc-plugins/app-plugin/empathy-app-plugin-widget.c
@@ -27,9 +27,9 @@
 #include <libaccounts-glib/ag-manager.h>
 #include <libaccounts-glib/ag-provider.h>
 
-#include "empathy-contact.h"
-#include "empathy-user-info.h"
+#include <tp-account-widgets/tpaw-user-info.h>
 
+#include "empathy-contact.h"
 #include "empathy-app-plugin-widget.h"
 
 G_DEFINE_TYPE (EmpathyAppPluginWidget, empathy_app_plugin_widget, GTK_TYPE_BOX)
@@ -101,12 +101,12 @@ response_cb (GtkWidget *widget,
 {
   if (self->priv->user_info != NULL)
     {
-      EmpathyUserInfo *user_info = (EmpathyUserInfo *) self->priv->user_info;
+      TpawUserInfo *user_info = (TpawUserInfo *) self->priv->user_info;
 
       if (response == GTK_RESPONSE_OK)
-        empathy_user_info_apply_async (user_info, NULL, NULL);
+        tpaw_user_info_apply_async (user_info, NULL, NULL);
       else
-        empathy_user_info_discard (user_info);
+        tpaw_user_info_discard (user_info);
     }
 
   g_signal_emit (self, signals[SIG_DONE], 0);
@@ -208,7 +208,7 @@ manager_prepared_cb (GObject *source,
           GtkWidget *alig;
 
           alig = gtk_alignment_new (0.5, 0, 0, 0);
-          self->priv->user_info = empathy_user_info_new (account);
+          self->priv->user_info = tpaw_user_info_new (account);
           gtk_container_add (GTK_CONTAINER (alig), self->priv->user_info);
           gtk_widget_show (self->priv->user_info);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]