From 32da083b8be2dba6c0f35770c7868e230c56b539 Mon Sep 17 00:00:00 2001 From: Danielle Madeley Date: Fri, 15 Apr 2011 15:24:23 +1000 Subject: Show top-up site for Skype --- src/empathy-main-window.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/empathy-main-window.c') 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 -- cgit v1.2.3