summaryrefslogtreecommitdiff
path: root/src/msg.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/msg.c')
-rw-r--r--src/msg.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/msg.c b/src/msg.c
index 973062ee..cbe6e3af 100644
--- a/src/msg.c
+++ b/src/msg.c
@@ -116,6 +116,11 @@ zenity_msg (ZenityData *data, ZenityMsgData *msg_data)
gtk_label_set_line_wrap (GTK_LABEL (text), FALSE);
zenity_util_show_dialog (dialog);
+
+ if(data->timeout_delay > 0) {
+ g_timeout_add (data->timeout_delay * 1000, (GSourceFunc) zenity_util_timeout_handle, NULL);
+ }
+
gtk_main ();
}
bgstack15