From e622cfee145441274841a16e827d99100249248e Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Mon, 13 Dec 2010 20:43:45 +0100 Subject: Add an Skype login widget With links to register/change password --- libempathy-gtk/Makefile.am | 1 + libempathy-gtk/empathy-account-widget-skype.ui | 248 +++++++++++++++++++++++++ libempathy-gtk/empathy-account-widget.c | 36 ++++ 3 files changed, 285 insertions(+) create mode 100644 libempathy-gtk/empathy-account-widget-skype.ui diff --git a/libempathy-gtk/Makefile.am b/libempathy-gtk/Makefile.am index 390d37cbb..a2a357255 100644 --- a/libempathy-gtk/Makefile.am +++ b/libempathy-gtk/Makefile.am @@ -199,6 +199,7 @@ ui_DATA = \ empathy-account-widget-yahoo.ui \ empathy-account-widget-groupwise.ui \ empathy-account-widget-aim.ui \ + empathy-account-widget-skype.ui \ empathy-status-preset-dialog.ui \ empathy-log-window.ui \ empathy-chat.ui \ diff --git a/libempathy-gtk/empathy-account-widget-skype.ui b/libempathy-gtk/empathy-account-widget-skype.ui new file mode 100644 index 000000000..563d91ee8 --- /dev/null +++ b/libempathy-gtk/empathy-account-widget-skype.ui @@ -0,0 +1,248 @@ + + + + + 1 + 10 + + + True + False + 6 + + + True + False + 4 + 2 + 12 + 6 + + + True + False + 0 + Pass_word: + True + + + 2 + 3 + GTK_FILL + + + + + + True + False + 0 + Skype name: + True + entry_id + + + GTK_FILL + + + + + + True + True + + + 1 + 2 + + + + + + True + True + False + + + 1 + 2 + 2 + 3 + + + + + + True + False + Don't have a Skype Name? +Get one at <a href="http://www.skype.com/go/register">Skype.com</a> + True + + + 1 + 2 + 1 + 2 + + + + + True + False + <a href="https://login.skype.com/account/password-reset-request">Forgotten your password?</a> + True + + + 1 + 2 + 3 + 4 + + + + + + + + + + + False + False + 0 + + + + + True + False + 6 + + + True + False + 0 + What is your Skype Name? + + + True + True + 0 + + + + + True + False + 0 + 0 + 0.34999999403953552 + 0.34999999403953552 + 3 + 12 + + + True + False + 4 + + + True + True + + + True + True + 0 + + + + + True + False + 0.10000000149011612 + Don't have a Skype Name? +Get one at <a href="http://www.skype.com/go/register">Skype.com</a> + True + + + + + + True + True + 1 + + + + + + + True + True + 1 + + + + + True + False + 0 + What is your Skype password? + + + True + True + 2 + + + + + True + False + 0 + 0 + 0.34999999403953552 + 0.34999999403953552 + 12 + + + True + False + + + True + True + False + + + True + True + 0 + + + + + True + False + <a href="https://login.skype.com/account/password-reset-request">Forgotten your password?</a> + True + + + True + True + 1 + + + + + + + True + True + 3 + + + + diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c index 63bf9275a..206ecc8ec 100644 --- a/libempathy-gtk/empathy-account-widget.c +++ b/libempathy-gtk/empathy-account-widget.c @@ -1448,6 +1448,41 @@ account_widget_build_groupwise (EmpathyAccountWidget *self, } } +static void +account_widget_build_skype (EmpathyAccountWidget *self, + const char *filename) +{ + EmpathyAccountWidgetPriv *priv = GET_PRIV (self); + + if (priv->simple) + { + self->ui_details->gui = empathy_builder_get_file (filename, + "vbox_skype_simple", &self->ui_details->widget, + NULL); + + empathy_account_widget_handle_params (self, + "entry_id_simple", "account", + "entry_password_simple", "password", + NULL); + + self->ui_details->default_focus = g_strdup ("entry_id_simple"); + } + else + { + self->ui_details->gui = empathy_builder_get_file (filename, + "table_common_skype_settings", &priv->table_common_settings, + "vbox_skype_settings", &self->ui_details->widget, + NULL); + + empathy_account_widget_handle_params (self, + "entry_id", "account", + "entry_password", "password", + NULL); + + self->ui_details->default_focus = g_strdup ("entry_id"); + } +} + static void account_widget_destroy_cb (GtkWidget *widget, EmpathyAccountWidget *self) @@ -1842,6 +1877,7 @@ do_constructed (GObject *obj) WIDGET (haze, groupwise), WIDGET (idle, irc), WIDGET (sofiasip, sip), + WIDGET (psyke, skype), }; cm_name = empathy_account_settings_get_cm (priv->settings); -- cgit v1.2.3