summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorArx Cruz <arxcruz@gnome.org>2015-05-29 14:46:37 +0200
committerArx Cruz <arxcruz@gnome.org>2015-05-29 14:46:37 +0200
commit297380bad9004876c873a86dbd25bc5fa420e4a3 (patch)
tree59dad703a41a7a36776fb43ea8b68ef906e2c40a /src
parentFix GLib critical messages (diff)
downloadzenity-297380bad9004876c873a86dbd25bc5fa420e4a3.tar.gz
zenity-297380bad9004876c873a86dbd25bc5fa420e4a3.tar.bz2
zenity-297380bad9004876c873a86dbd25bc5fa420e4a3.zip
Bug #742963 - Basic notifications do not return
Diffstat (limited to 'src')
-rw-r--r--src/notification.c4
1 files 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
bgstack15