]> git.0d.be Git - empathy.git/commitdiff
Fix UOA build
authorXavier Claessens <xavier.claessens@collabora.co.uk>
Fri, 13 Sep 2013 21:32:42 +0000 (17:32 -0400)
committerXavier Claessens <xavier.claessens@collabora.co.uk>
Mon, 16 Sep 2013 14:39:21 +0000 (10:39 -0400)
ubuntu-online-accounts/cc-plugins/account-plugins/Makefile.am
ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin-widget.c
ubuntu-online-accounts/cc-plugins/account-plugins/empathy-accounts-plugin.c
ubuntu-online-accounts/cc-plugins/app-plugin/Makefile.am
ubuntu-online-accounts/cc-plugins/app-plugin/empathy-app-plugin-widget.c

index 1271f6ec32299e09bab884cc92d8991a5a7f248b..0006ced337e003f0e9461bfdf4344dfc13c346d8 100644 (file)
@@ -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
index c0f29e2c744824235523ef96dac93bf22f987ff5..8b9dacfbd14839956fddc78cbc080121a02bf8ec 100644 (file)
@@ -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;
index 1f322ec52e1919e7b96c1e00315b5d43956707e0..6f79f87cf9dfd789dc6e27a9f211d66c6f3755bb 100644 (file)
 
 #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);
 
index 801c2d8a1cb0c9c70128b09862feaa291ecd2bb0..16fcd41b4075599f1058b74f7422b95070b9a75c 100644 (file)
@@ -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
index 6895a04d520c68135eb6e9200bbd3a0705a911d3..addd737e62216f4506cfb468b63b14b595d20aef 100644 (file)
@@ -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);