Commit cde70cc9 authored by Marco Barisione's avatar Marco Barisione

Save the UOA provider name in the pkg-config file

https://bugzilla.gnome.org/show_bug.cgi?id=699492
parent 6a7fa83f
......@@ -141,9 +141,13 @@ PKG_CHECK_MODULES(TPAW,
gtk+-3.0 >= $GTK_REQUIRED
])
AC_DEFINE(EMPATHY_UOA_PROVIDER,
"im.telepathy.Account.Storage.UOA",
# -----------------------------------------------------------
# UOA configuration bits
# -----------------------------------------------------------
TPAW_UOA_PROVIDER="im.telepathy.Account.Storage.UOA"
AC_DEFINE_UNQUOTED(TPAW_UOA_PROVIDER, "$TPAW_UOA_PROVIDER",
[Name of provider for accounts imported from libaccounts])
AC_SUBST(TPAW_UOA_PROVIDER)
# -----------------------------------------------------------
# Enable debug
......
......@@ -3,6 +3,8 @@ exec_prefix=
abs_top_srcdir=@abs_top_srcdir@
abs_top_builddir=@abs_top_builddir@
uoa_provider=@TPAW_UOA_PROVIDER@
Name: telepathy-account-widgets (uninstalled copy)
Description: Widgets and utility functions for configuring Telepathy accounts
Version: @VERSION@
......
......@@ -274,7 +274,7 @@ tpaw_keyring_get_account_password_async (TpAccount *account,
const gchar *provider;
provider = tp_account_get_storage_provider (account);
if (!tp_strdiff (provider, EMPATHY_UOA_PROVIDER))
if (!tp_strdiff (provider, TPAW_UOA_PROVIDER))
{
uoa_get_account_password (account, simple);
g_object_unref (simple);
......@@ -574,7 +574,7 @@ tpaw_keyring_set_account_password_async (TpAccount *account,
const gchar *provider;
provider = tp_account_get_storage_provider (account);
if (!tp_strdiff (provider, EMPATHY_UOA_PROVIDER))
if (!tp_strdiff (provider, TPAW_UOA_PROVIDER))
{
uoa_set_account_password (account, password, remember, simple);
g_object_unref (simple);
......@@ -693,7 +693,7 @@ tpaw_keyring_delete_account_password_async (TpAccount *account,
const gchar *provider;
provider = tp_account_get_storage_provider (account);
if (!tp_strdiff (provider, EMPATHY_UOA_PROVIDER))
if (!tp_strdiff (provider, TPAW_UOA_PROVIDER))
{
/* I see no other way to forget the stored password than overwriting
* with an empty one. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment