diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2009-09-01 21:48:59 +0800 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2009-09-01 22:49:39 +0800 |
commit | 182f1d1d62275355fa248fcdb9ea9b9a09a60e08 (patch) | |
tree | d0adad2503e572eea8ee533a3574cf4bc0048bdc /libempathy/empathy-dispatcher.c | |
parent | 834d75c763532d104e21a9add828d4a10afb799b (diff) | |
download | gsoc2013-empathy-182f1d1d62275355fa248fcdb9ea9b9a09a60e08.tar gsoc2013-empathy-182f1d1d62275355fa248fcdb9ea9b9a09a60e08.tar.gz gsoc2013-empathy-182f1d1d62275355fa248fcdb9ea9b9a09a60e08.tar.bz2 gsoc2013-empathy-182f1d1d62275355fa248fcdb9ea9b9a09a60e08.tar.lz gsoc2013-empathy-182f1d1d62275355fa248fcdb9ea9b9a09a60e08.tar.xz gsoc2013-empathy-182f1d1d62275355fa248fcdb9ea9b9a09a60e08.tar.zst gsoc2013-empathy-182f1d1d62275355fa248fcdb9ea9b9a09a60e08.zip |
Don't set empty values for the default EmpathyHandler
This implies the following:
- have an empty default handler when the Dispatcher is used directly
with the singleton
- autogenerate the name for the default handler
- set priv->filters in the handler to an empty GPtrArray in this case,
as that can't be NULL.
Diffstat (limited to 'libempathy/empathy-dispatcher.c')
-rw-r--r-- | libempathy/empathy-dispatcher.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libempathy/empathy-dispatcher.c b/libempathy/empathy-dispatcher.c index 7aec41438..fca24daeb 100644 --- a/libempathy/empathy-dispatcher.c +++ b/libempathy/empathy-dispatcher.c @@ -890,6 +890,9 @@ dispatcher_constructor (GType type, priv = GET_PRIV (dispatcher); + if (priv->handler == NULL) + priv->handler = empathy_handler_new (NULL, NULL, NULL); + empathy_handler_set_handle_channels_func (priv->handler, empathy_dispatcher_handle_channels, dispatcher); |