aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-main-window.c
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2011-04-15 13:24:23 +0800
committerDanielle Madeley <danielle.madeley@collabora.co.uk>2011-04-15 13:24:23 +0800
commit32da083b8be2dba6c0f35770c7868e230c56b539 (patch)
tree2980fad66ee74884e23bf8e7e32f61d13b49d9f6 /src/empathy-main-window.c
parent6b3bef7072a3607312bac776cc61f71e2b1fc694 (diff)
downloadgsoc2013-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
Diffstat (limited to 'src/empathy-main-window.c')
-rw-r--r--src/empathy-main-window.c13
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