diff options
author | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-04-15 13:24:23 +0800 |
---|---|---|
committer | Danielle Madeley <danielle.madeley@collabora.co.uk> | 2011-04-15 13:24:23 +0800 |
commit | 32da083b8be2dba6c0f35770c7868e230c56b539 (patch) | |
tree | 2980fad66ee74884e23bf8e7e32f61d13b49d9f6 | |
parent | 6b3bef7072a3607312bac776cc61f71e2b1fc694 (diff) | |
download | gsoc2013-empathy-32da083b8be2dba6c0f35770c7868e230c56b539.tar gsoc2013-empathy-32da083b8be2dba6c0f35770c7868e230c56b539.tar.gz gsoc2013-empathy-32da083b8be2dba6c0f35770c7868e230c56b539.tar.bz2 gsoc2013-empathy-32da083b8be2dba6c0f35770c7868e230c56b539.tar.lz gsoc2013-empathy-32da083b8be2dba6c0f35770c7868e230c56b539.tar.xz gsoc2013-empathy-32da083b8be2dba6c0f35770c7868e230c56b539.tar.zst gsoc2013-empathy-32da083b8be2dba6c0f35770c7868e230c56b539.zip |
Show top-up site for Skype
-rw-r--r-- | src/empathy-main-window.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c index a04a4fabb..671e228c1 100644 --- a/src/empathy-main-window.c +++ b/src/empathy-main-window.c @@ -922,7 +922,18 @@ static void main_window_balance_activate_cb (GtkAction *action, EmpathyMainWindow *window) { - DEBUG ("ACTIVATE!"); + TpAccount *account = g_object_get_data (G_OBJECT (action), "account"); + const char *protocol = tp_account_get_protocol (account); + + /* FIXME: need a generic way to find out how to top-up an + * account that also works with arbitrary SIP and XMPP gateways -- + * https://bugs.freedesktop.org/show_bug.cgi?id=36254 */ + if (!tp_strdiff (protocol, "skype")) { + empathy_url_show (GTK_WIDGET (window), + "http://go.skype.com/store.buy.skypecredit"); + } else { + DEBUG ("unknown protocol for top-up"); + } } static void |