aboutsummaryrefslogtreecommitdiffstats
path: root/extensions/extensions-cli.c
diff options
context:
space:
mode:
authorxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-02-26 21:31:16 +0800
committerxclaesse <xclaesse@4ee84921-47dd-4033-b63a-18d7a039a3e4>2008-02-26 21:31:16 +0800
commit305618bc4b8d329cac8e58d84300477acb12e5f8 (patch)
tree466e29fca7fb12078f7a727b7d50ac7487a618fc /extensions/extensions-cli.c
parentcd24a3a0fd187316d7ab36e2226a3c195784560a (diff)
downloadgsoc2013-empathy-305618bc4b8d329cac8e58d84300477acb12e5f8.tar
gsoc2013-empathy-305618bc4b8d329cac8e58d84300477acb12e5f8.tar.gz
gsoc2013-empathy-305618bc4b8d329cac8e58d84300477acb12e5f8.tar.bz2
gsoc2013-empathy-305618bc4b8d329cac8e58d84300477acb12e5f8.tar.lz
gsoc2013-empathy-305618bc4b8d329cac8e58d84300477acb12e5f8.tar.xz
gsoc2013-empathy-305618bc4b8d329cac8e58d84300477acb12e5f8.tar.zst
gsoc2013-empathy-305618bc4b8d329cac8e58d84300477acb12e5f8.zip
It's now safe to call emp_cli_init multiple times. Move that call to empathy_tp_call_class_init.
git-svn-id: svn+ssh://svn.gnome.org/svn/empathy/trunk@665 4ee84921-47dd-4033-b63a-18d7a039a3e4
Diffstat (limited to 'extensions/extensions-cli.c')
-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;
+ }
}