[empathy] Set the DelegateToPreferredHandler hint

commit 4644a9d69f070df504925902e7692fa1bc731dfa
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Tue Jun 14 10:12:45 2011 +0100

    Set the DelegateToPreferredHandler hint
    This ensures that Empathy will always handle and display the channel, even if
    GNOME Shel is already handling it.

 libempathy/empathy-request-util.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/libempathy/empathy-request-util.c b/libempathy/empathy-request-util.c
index 953e982..409fdf5 100644
--- a/libempathy/empathy-request-util.c
+++ b/libempathy/empathy-request-util.c
@@ -80,6 +80,7 @@ create_text_channel (TpAccount *account,
   req = tp_account_channel_request_new (account, request, timestamp);
+  tp_account_channel_request_set_delegate_to_preferred_handler (req, TRUE);
   tp_account_channel_request_ensure_channel_async (req, EMPATHY_CHAT_BUS_NAME,
       NULL, ensure_text_channel_cb, NULL);

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]