From 7b65bf4d60c158d0d4e164972db42e68395a106e 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/empathy-account-widget.c | 36 +++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) (limited to 'libempathy-gtk/empathy-account-widget.c') diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c index 876f6a436..30bb5489f 100644 --- a/libempathy-gtk/empathy-account-widget.c +++ b/libempathy-gtk/empathy-account-widget.c @@ -1480,6 +1480,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) @@ -1884,6 +1919,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