diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-03-02 20:08:33 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-03-07 19:35:50 +0800 |
commit | 45e986eb37e4707f1b4e9e39ef86bd541e16ad81 (patch) | |
tree | 2e3e91892e1c3c1864d538f8a7c4f27f51d7cee9 /src/empathy-main-window.c | |
parent | c03cf1a26b17190e50f6ef305aa74452cc03a0b5 (diff) | |
download | gsoc2013-empathy-45e986eb37e4707f1b4e9e39ef86bd541e16ad81.tar gsoc2013-empathy-45e986eb37e4707f1b4e9e39ef86bd541e16ad81.tar.gz gsoc2013-empathy-45e986eb37e4707f1b4e9e39ef86bd541e16ad81.tar.bz2 gsoc2013-empathy-45e986eb37e4707f1b4e9e39ef86bd541e16ad81.tar.lz gsoc2013-empathy-45e986eb37e4707f1b4e9e39ef86bd541e16ad81.tar.xz gsoc2013-empathy-45e986eb37e4707f1b4e9e39ef86bd541e16ad81.tar.zst gsoc2013-empathy-45e986eb37e4707f1b4e9e39ef86bd541e16ad81.zip |
Autoreject incoming calls if there are others in progress
https://bugzilla.gnome.org/show_bug.cgi?id=643656
Diffstat (limited to 'src/empathy-main-window.c')
-rw-r--r-- | src/empathy-main-window.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c index 84bdd70b0..ecdbb8442 100644 --- a/src/empathy-main-window.c +++ b/src/empathy-main-window.c @@ -66,6 +66,7 @@ #include <libempathy-gtk/empathy-ui-utils.h> #include "empathy-accounts-dialog.h" +#include "empathy-call-observer.h" #include "empathy-chat-manager.h" #include "empathy-main-window.h" #include "empathy-preferences.h" @@ -108,6 +109,7 @@ struct _EmpathyMainWindowPriv { TpAccountManager *account_manager; EmpathyChatroomManager *chatroom_manager; EmpathyEventManager *event_manager; + EmpathyCallObserver *call_observer; guint flash_timeout_id; gboolean flash_on; gboolean empty; @@ -860,6 +862,7 @@ empathy_main_window_finalize (GObject *window) g_signal_handlers_disconnect_by_func (priv->event_manager, main_window_event_removed_cb, window); + g_object_unref (priv->call_observer); g_object_unref (priv->event_manager); g_object_unref (priv->ui_manager); g_object_unref (priv->chatroom_manager); @@ -1908,6 +1911,7 @@ empathy_main_window_init (EmpathyMainWindow *window) empathy_geometry_bind (GTK_WINDOW (window), GEOMETRY_NAME); /* Enable event handling */ + priv->call_observer = empathy_call_observer_dup_singleton (); priv->event_manager = empathy_event_manager_dup_singleton (); g_signal_connect (priv->event_manager, "event-added", |