From 297380bad9004876c873a86dbd25bc5fa420e4a3 Mon Sep 17 00:00:00 2001 From: Arx Cruz Date: Fri, 29 May 2015 14:46:37 +0200 Subject: Bug #742963 - Basic notifications do not return --- src/notification.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/notification.c b/src/notification.c index a4355a1e..3169a994 100644 --- a/src/notification.c +++ b/src/notification.c @@ -323,6 +323,7 @@ zenity_notification (ZenityData *data, ZenityNotificationData *notification_data if (notification_data->listen) { zenity_notification_listen_on_stdin (data); + gtk_main(); } else { if (notification_data->notification_text == NULL) { exit (1); @@ -362,9 +363,8 @@ zenity_notification (ZenityData *data, ZenityNotificationData *notification_data if (data->timeout_delay > 0) { g_timeout_add_seconds (data->timeout_delay, (GSourceFunc) zenity_util_timeout_handle, NULL); + gtk_main(); } - - gtk_main (); } #endif -- cgit