diff options
author | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-03-07 19:40:35 +0800 |
---|---|---|
committer | Emilio Pozuelo Monfort <emilio.pozuelo@collabora.co.uk> | 2011-03-07 19:40:35 +0800 |
commit | 19c228d5cd6a1eec12b0d7d015bb0fc49821f1ce (patch) | |
tree | 41a458625b02029854517fea03aaba8a137e33ce /src/empathy-main-window.c | |
parent | 20ec7b56ec63c56b41ad7c2cff2e4fd1ce3ba47f (diff) | |
download | gsoc2013-empathy-19c228d5cd6a1eec12b0d7d015bb0fc49821f1ce.tar gsoc2013-empathy-19c228d5cd6a1eec12b0d7d015bb0fc49821f1ce.tar.gz gsoc2013-empathy-19c228d5cd6a1eec12b0d7d015bb0fc49821f1ce.tar.bz2 gsoc2013-empathy-19c228d5cd6a1eec12b0d7d015bb0fc49821f1ce.tar.lz gsoc2013-empathy-19c228d5cd6a1eec12b0d7d015bb0fc49821f1ce.tar.xz gsoc2013-empathy-19c228d5cd6a1eec12b0d7d015bb0fc49821f1ce.tar.zst gsoc2013-empathy-19c228d5cd6a1eec12b0d7d015bb0fc49821f1ce.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 | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/empathy-main-window.c b/src/empathy-main-window.c index 8e3f2d89b..8f08f74be 100644 --- a/src/empathy-main-window.c +++ b/src/empathy-main-window.c @@ -64,6 +64,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" @@ -107,7 +108,8 @@ struct _EmpathyMainWindowPriv { TpAccountManager *account_manager; EmpathyChatroomManager *chatroom_manager; EmpathyEventManager *event_manager; - EmpathySoundManager *sound_mgr;; + EmpathySoundManager *sound_mgr; + EmpathyCallObserver *call_observer; guint flash_timeout_id; gboolean flash_on; gboolean empty; @@ -873,6 +875,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); @@ -1930,6 +1933,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", |