[ekiga] StatusIcon: Fixed gnome-shell check.



commit 4995ef2b435356f7da813e264f8a6a57fe8691b3
Author: Damien Sandras <dsandras seconix com>
Date:   Sat Jan 24 17:34:05 2015 +0100

    StatusIcon: Fixed gnome-shell check.

 lib/engine/gui/gtk-frontend/statusicon.cpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/lib/engine/gui/gtk-frontend/statusicon.cpp b/lib/engine/gui/gtk-frontend/statusicon.cpp
index af32431..e090839 100644
--- a/lib/engine/gui/gtk-frontend/statusicon.cpp
+++ b/lib/engine/gui/gtk-frontend/statusicon.cpp
@@ -34,6 +34,7 @@
  *   description          : High level tray api implementation
  */
 
+#include "config.h"
 
 #include <glib/gi18n.h>
 #include <gdk/gdkkeysyms.h>
@@ -579,8 +580,9 @@ status_icon_new (GmApplication *app)
   g_signal_connect (self, "activate",
                     G_CALLBACK (statusicon_activated_cb), self);
 
-  g_signal_connect (self->priv->chat_window, "unread-count",
-                    G_CALLBACK (unread_count_cb), self);
+  if (self->priv->chat_window)
+    g_signal_connect (self->priv->chat_window, "unread-count",
+                      G_CALLBACK (unread_count_cb), self);
 
   g_signal_connect (self, "clicked",
                     G_CALLBACK (status_icon_clicked_cb), self);


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