aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-utils.c
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-08-26 17:15:11 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-08-29 17:42:15 +0800
commit04f88a3959838b95972664ce99cf24f94be06457 (patch)
tree5ba481428038c56c84f94b4c0571bd9d2c4c5c71 /libempathy/empathy-utils.c
parent6dfd7204baa89c6eb3903753f45b7d416a93b112 (diff)
downloadgsoc2013-empathy-04f88a3959838b95972664ce99cf24f94be06457.tar.gz
gsoc2013-empathy-04f88a3959838b95972664ce99cf24f94be06457.tar.zst
gsoc2013-empathy-04f88a3959838b95972664ce99cf24f94be06457.zip
export empathy_account_has_uri_scheme_tel()
https://bugzilla.gnome.org/show_bug.cgi?id=650112
Diffstat (limited to 'libempathy/empathy-utils.c')
-rw-r--r--libempathy/empathy-utils.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c
index 9a0d16707..f0ecc0ddf 100644
--- a/libempathy/empathy-utils.c
+++ b/libempathy/empathy-utils.c
@@ -955,3 +955,22 @@ empathy_format_currency (gint amount,
return money;
}
+
+gboolean
+empathy_account_has_uri_scheme_tel (TpAccount *account)
+{
+ const gchar * const * uri_schemes;
+ guint i;
+
+ uri_schemes = tp_account_get_uri_schemes (account);
+ if (uri_schemes == NULL)
+ return FALSE;
+
+ for (i = 0; uri_schemes[i] != NULL; i++)
+ {
+ if (!tp_strdiff (uri_schemes[i], "tel"))
+ return TRUE;
+ }
+
+ return FALSE;
+}
Bump PORTREVISION on all ports with USE_SQLITE=yes or USE_SQLITE=3 thattijl2014-07-041-0/+1 * Add a forgotten patchbapt2014-07-021-0/+13 * Support stagebapt2014-07-022-44/+23 * Update WWW; the old domain is now controlled by squatters.shaun2013-10-271-1/+1 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-211-0/+1 * - convert to the new perl5 frameworkaz2013-09-171-1/+2 * Really update to 3.0.8 this time. It appears that the first hunk of the patchcrees2013-01-042-9/+4 * Security update to 3.0.8, to fix a remote DoS crashcrees2013-01-023-43/+47 * Move the rc.d scripts of the form *.sh.in to *.indougb2012-08-062-1/+3 * - Remove ftp.parodius.com from MASTER_SITES due to its forthcomingjase2012-07-081-1/+0 * Register CONFLICTS with charybdis; both install files in same placecrees2012-05-121-1/+1 * - Major release update to 3.0.7. Read /usr/ports/UPDATINGscheidell2012-04-1518-300/+319 * In the rc.d scripts, change assignments to rcvar to use thedougb2012-01-141-1/+1 * Update MASTER_SITEScrees2011-12-201-4/+2 * Use USERS and GROUPScrees2011-07-062-86/+7