diff options
author | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-03-10 14:52:06 +0800 |
---|---|---|
committer | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-03-14 18:46:48 +0800 |
commit | 24a71caaf3d9674ff3b18f9cd098aefc11bc2b21 (patch) | |
tree | 97ba518aa87d522f58d7d18080fa62f542829947 /libempathy-gtk/empathy-account-widget-skype.c | |
parent | addb328a76cf2ac16ffb783b7ec494d2d69873c1 (diff) | |
download | gsoc2013-empathy-24a71caaf3d9674ff3b18f9cd098aefc11bc2b21.tar gsoc2013-empathy-24a71caaf3d9674ff3b18f9cd098aefc11bc2b21.tar.gz gsoc2013-empathy-24a71caaf3d9674ff3b18f9cd098aefc11bc2b21.tar.bz2 gsoc2013-empathy-24a71caaf3d9674ff3b18f9cd098aefc11bc2b21.tar.lz gsoc2013-empathy-24a71caaf3d9674ff3b18f9cd098aefc11bc2b21.tar.xz gsoc2013-empathy-24a71caaf3d9674ff3b18f9cd098aefc11bc2b21.tar.zst gsoc2013-empathy-24a71caaf3d9674ff3b18f9cd098aefc11bc2b21.zip |
Implement ForgetPassword button
Diffstat (limited to 'libempathy-gtk/empathy-account-widget-skype.c')
-rw-r--r-- | libempathy-gtk/empathy-account-widget-skype.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-account-widget-skype.c b/libempathy-gtk/empathy-account-widget-skype.c index f20726b61..32ee9c9e5 100644 --- a/libempathy-gtk/empathy-account-widget-skype.c +++ b/libempathy-gtk/empathy-account-widget-skype.c @@ -422,6 +422,27 @@ account_widget_build_skype_password_entry_focus (GtkWidget *password_entry, } static void +account_widget_skype_forget_password (GtkEntry *entry, + GtkEntryIconPosition pos, + GdkEvent *event, + EmpathyAccountWidget *self) +{ + EmpathyAccountWidgetPriv *priv = GET_PRIV (self); + TpAccount *account = empathy_account_settings_get_account (priv->settings); + + if (pos != GTK_ENTRY_ICON_SECONDARY) + return; + + if (account == NULL) + return; + + DEBUG ("ForgetPassword clicked"); + + emp_cli_account_interface_external_password_storage_call_forget_password ( + TP_PROXY (account), -1, NULL, NULL, NULL, NULL); +} + +static void account_widget_build_skype_get_privacy_settings_cb (TpProxy *cm, GHashTable *props, const GError *in_error, @@ -735,6 +756,8 @@ empathy_account_widget_build_skype (EmpathyAccountWidget *self, empathy_builder_connect (self->ui_details->gui, self, "edit-privacy-settings-button", "clicked", account_widget_skype_privacy_settings, + "entry_password", "icon-press", + account_widget_skype_forget_password, NULL); if (account != NULL) |