]> git.0d.be Git - empathy.git/blobdiff - libempathy-gtk/empathy-new-account-dialog.c
Fix broken nl translation
[empathy.git] / libempathy-gtk / empathy-new-account-dialog.c
index 6d13d15e39373c6505fa5c5774e8e9a9b0a811d3..1d87e21effcabf780d2554140dad5dc61a17188f 100644 (file)
@@ -21,8 +21,8 @@
 #include "empathy-new-account-dialog.h"
 
 #include <glib/gi18n-lib.h>
+#include <tp-account-widgets/tpaw-account-widget.h>
 
-#include "empathy-account-widget.h"
 #include "empathy-protocol-chooser.h"
 
 #define DEBUG_FLAG EMPATHY_DEBUG_ACCOUNT
@@ -34,15 +34,15 @@ G_DEFINE_TYPE (EmpathyNewAccountDialog, empathy_new_account_dialog, \
 struct _EmpathyNewAccountDialogPrivate
 {
   GtkWidget *chooser;
-  EmpathyAccountWidget *current_account_widget;
+  TpawAccountWidget *current_account_widget;
   GtkWidget *main_vbox;
   GtkWidget *connect_button;
 
-  EmpathyAccountSettings *settings;
+  TpawAccountSettings *settings;
 };
 
 static void
-close_cb (EmpathyAccountWidget *widget,
+close_cb (TpawAccountWidget *widget,
     GtkResponseType response,
     EmpathyNewAccountDialog *self)
 {
@@ -53,8 +53,8 @@ static void
 protocol_changed_cb (GtkComboBox *chooser,
     EmpathyNewAccountDialog *self)
 {
-  EmpathyAccountSettings *settings;
-  EmpathyAccountWidget *account_widget;
+  TpawAccountSettings *settings;
+  TpawAccountWidget *account_widget;
   gchar *password = NULL, *account = NULL;
 
   settings = empathy_protocol_chooser_create_account_settings (
@@ -66,16 +66,17 @@ protocol_changed_cb (GtkComboBox *chooser,
   /* Save "account" and "password" parameters */
   if (self->priv->settings != NULL)
     {
-      account = empathy_account_settings_dup_string (
+      account = tpaw_account_settings_dup_string (
             self->priv->settings, "account");
 
-      password = empathy_account_settings_dup_string (
+      password = tpaw_account_settings_dup_string (
             self->priv->settings, "password");
 
       g_object_unref (self->priv->settings);
     }
 
-  account_widget = empathy_account_widget_new_for_protocol (settings, TRUE);
+  account_widget = tpaw_account_widget_new_for_protocol (settings,
+      NULL, TRUE);
 
   if (self->priv->current_account_widget != NULL)
     {
@@ -95,13 +96,13 @@ protocol_changed_cb (GtkComboBox *chooser,
   /* Restore "account" and "password" parameters in the new widget */
   if (account != NULL)
     {
-      empathy_account_widget_set_account_param (account_widget, account);
+      tpaw_account_widget_set_account_param (account_widget, account);
       g_free (account);
     }
 
   if (password != NULL)
     {
-      empathy_account_widget_set_password_param (account_widget, password);
+      tpaw_account_widget_set_password_param (account_widget, password);
       g_free (password);
     }
 
@@ -190,7 +191,7 @@ empathy_new_account_dialog_new (GtkWindow *parent)
   return result;
 }
 
-EmpathyAccountSettings *
+TpawAccountSettings *
 empathy_new_account_dialog_get_settings (EmpathyNewAccountDialog *self)
 {
   return self->priv->settings;