aboutsummaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2008-02-26 21:31:16 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2008-02-26 21:31:16 +0800
commitc524708b1e398a1f81ce430f765ef825ca780f37 (patch)
tree466e29fca7fb12078f7a727b7d50ac7487a618fc /extensions
parent389d71af383dacd5e67d460811926b34d7fcf22f (diff)
downloadgsoc2013-empathy-c524708b1e398a1f81ce430f765ef825ca780f37.tar
gsoc2013-empathy-c524708b1e398a1f81ce430f765ef825ca780f37.tar.gz
gsoc2013-empathy-c524708b1e398a1f81ce430f765ef825ca780f37.tar.bz2
gsoc2013-empathy-c524708b1e398a1f81ce430f765ef825ca780f37.tar.lz
gsoc2013-empathy-c524708b1e398a1f81ce430f765ef825ca780f37.tar.xz
gsoc2013-empathy-c524708b1e398a1f81ce430f765ef825ca780f37.tar.zst
gsoc2013-empathy-c524708b1e398a1f81ce430f765ef825ca780f37.zip
It's now safe to call emp_cli_init multiple times. Move that call to empathy_tp_call_class_init.
svn path=/trunk/; revision=665
Diffstat (limited to 'extensions')
-rw-r--r--extensions/extensions-cli.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/extensions/extensions-cli.c b/extensions/extensions-cli.c
index 98a174478..c75633c33 100644
--- a/extensions/extensions-cli.c
+++ b/extensions/extensions-cli.c
@@ -12,8 +12,14 @@ static void _emp_ext_register_dbus_glib_marshallers (void);
void
emp_cli_init (void)
{
- _emp_ext_register_dbus_glib_marshallers ();
+ static gboolean initilized = FALSE;
- tp_proxy_or_subclass_hook_on_interface_add (TP_TYPE_PROXY,
- emp_cli_misc_add_signals);
+ if (!initialized)
+ {
+ _emp_ext_register_dbus_glib_marshallers ();
+
+ tp_proxy_or_subclass_hook_on_interface_add (TP_TYPE_PROXY,
+ emp_cli_misc_add_signals);
+ initialized = TRUE;
+ }
}