[gnome-flashback/wip/libnotificationcrash] libnotification: add check for main loop
- From: Sebastian Geiger <segeiger src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback/wip/libnotificationcrash] libnotification: add check for main loop
- Date: Sat, 8 Dec 2018 10:15:45 +0000 (UTC)
commit e8f3f0440217573a092d89615fb7ef14481af3e3
Author: Sebastian Geiger <sbastig gmx net>
Date: Sat Dec 8 11:15:19 2018 +0100
libnotification: add check for main loop
gnome-flashback/libnotifications/nd-daemon.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gnome-flashback/libnotifications/nd-daemon.c b/gnome-flashback/libnotifications/nd-daemon.c
index 7ff56d5..24fbcee 100644
--- a/gnome-flashback/libnotifications/nd-daemon.c
+++ b/gnome-flashback/libnotifications/nd-daemon.c
@@ -266,7 +266,8 @@ name_lost_handler_cb (GDBusConnection *connection,
const gchar *name,
gpointer user_data)
{
- gtk_main_quit ();
+ if (gtk_main_level () > 0)
+ gtk_main_quit ();
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]