[gnome-builder] notificatoin: be defensive during shutdown



commit ac4ad7e69a1c640e92b9422dfaea39f0632a3fb8
Author: Christian Hergert <chergert redhat com>
Date:   Wed Jan 31 19:56:36 2018 -0800

    notificatoin: be defensive during shutdown

 src/plugins/notification/ide-notification-addin.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/notification/ide-notification-addin.c 
b/src/plugins/notification/ide-notification-addin.c
index 4d100f35e..b6bed29e4 100644
--- a/src/plugins/notification/ide-notification-addin.c
+++ b/src/plugins/notification/ide-notification-addin.c
@@ -78,8 +78,8 @@ ide_notification_addin_notify (IdeNotificationAddin *self,
   g_assert (IDE_IS_NOTIFICATION_ADDIN (self));
 
   app = GTK_APPLICATION (g_application_get_default ());
-  window = gtk_application_get_active_window (app);
-  if(gtk_window_is_active (window))
+
+  if (!(window = gtk_application_get_active_window (app)))
     return;
 
   context = ide_object_get_context (IDE_OBJECT (self));


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