diff options
-rw-r--r-- | configure.ac | 2 | ||||
-rw-r--r-- | src/mcd-account-compat.c | 14 | ||||
-rw-r--r-- | src/mcd-account-compat.h | 2 | ||||
-rw-r--r-- | src/mcd-account-priv.h | 1 | ||||
-rw-r--r-- | src/mcd-account.c | 1 |
5 files changed, 19 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index a979ea77..e2e8fb20 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -AC_INIT(telepathy-mission-control, 5.0.beta63) +AC_INIT(telepathy-mission-control, 5.0.beta64) AC_CONFIG_MACRO_DIR([m4]) AC_CONFIG_SRCDIR(Makefile.am) AM_INIT_AUTOMAKE([1.9 tar-ustar -Wno-portability]) diff --git a/src/mcd-account-compat.c b/src/mcd-account-compat.c index 8e6fdd1a..f8e5c614 100644 --- a/src/mcd-account-compat.c +++ b/src/mcd-account-compat.c @@ -72,6 +72,8 @@ set_profile (TpSvcDBusProperties *self, const gchar *name, name, NULL); } mcd_account_write_conf (account); + + g_signal_emit (account, _mcd_account_signals[PROFILE_SET], 0); } static void @@ -381,3 +383,15 @@ mcd_account_compat_get_mc_profile (McdAccount *account) return profile; } +inline void +_mcd_account_compat_class_init (McdAccountClass *klass) +{ + _mcd_account_signals[PROFILE_SET] = + g_signal_new ("profile-set", + G_OBJECT_CLASS_TYPE (klass), + G_SIGNAL_RUN_LAST | G_SIGNAL_DETAILED, + 0, + NULL, NULL, g_cclosure_marshal_VOID__VOID, + G_TYPE_NONE, 0); +} + diff --git a/src/mcd-account-compat.h b/src/mcd-account-compat.h index d6b1d5af..c18b4cce 100644 --- a/src/mcd-account-compat.h +++ b/src/mcd-account-compat.h @@ -55,6 +55,8 @@ McProfile *mcd_account_compat_get_mc_profile (McdAccount *account); /* not exported */ gboolean _mcd_account_compat_request_channel_nmc4 (McdAccount *account, const struct mcd_channel_request *req, GError **error); +G_GNUC_INTERNAL +inline void _mcd_account_compat_class_init (McdAccountClass *klass); G_END_DECLS #endif diff --git a/src/mcd-account-priv.h b/src/mcd-account-priv.h index 8017511a..96e7b11f 100644 --- a/src/mcd-account-priv.h +++ b/src/mcd-account-priv.h @@ -37,6 +37,7 @@ enum AVATAR_CHANGED, ALIAS_CHANGED, CONNECTION_PROCESS, + PROFILE_SET, LAST_SIGNAL }; diff --git a/src/mcd-account.c b/src/mcd-account.c index cf01f55c..12e75f59 100644 --- a/src/mcd-account.c +++ b/src/mcd-account.c @@ -1642,6 +1642,7 @@ mcd_account_class_init (McdAccountClass * klass) 0, NULL, NULL, g_cclosure_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING); + _mcd_account_compat_class_init (klass); _mcd_account_connection_class_init (klass); account_ready_quark = g_quark_from_static_string ("mcd_account_load"); |