[empathy/gnome-3-12: 5/12] Always notify presence manager on exit



commit decddabbfd758a83e454e2e038ba287714cdb970
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Thu Jul 21 20:13:45 2016 -0500

    Always notify presence manager on exit
    
    Even when running in GNOME Shell. It's been years since this made sense.

 src/empathy.c |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/src/empathy.c b/src/empathy.c
index bde8a01..e36c459 100644
--- a/src/empathy.c
+++ b/src/empathy.c
@@ -116,14 +116,8 @@ empathy_app_dispose (GObject *object)
   void (*dispose) (GObject *) =
     G_OBJECT_CLASS (empathy_app_parent_class)->dispose;
 
-  /* Only set our presence to offline when exiting if GNOME Shell is not
-   * running */
-  if (self->presence_mgr != NULL &&
-      !self->shell_running)
-    {
-      empathy_presence_manager_set_state (self->presence_mgr,
-          TP_CONNECTION_PRESENCE_TYPE_OFFLINE);
-    }
+  empathy_presence_manager_set_state (self->presence_mgr,
+      TP_CONNECTION_PRESENCE_TYPE_OFFLINE);
 
 #ifdef ENABLE_DEBUG
   tp_clear_object (&self->debug_sender);


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