Hi,

when applying the attached patch zenity seems to work again as expected:


before:
# zenity --question --text "foo"  --title "bar" --timeout=4 ; echo $?
<doing nothing>
5
# zenity --question --text "foo"  --title "bar" --timeout=4 ; echo $?
<click yes>
5

after:
# zenity --question --text "foo"  --title "bar" --timeout=4 ; echo $?
<doing nothing>
5
# zenity --question --text "foo"  --title "bar" --timeout=4 ; echo $?
<click yes>
0


/Florian
diff -Naur zenity-3.4.0/src/util.c zenity-3.4.0.patched/src/util.c
--- zenity-3.4.0/src/util.c	2011-08-16 15:52:42.000000000 +0200
+++ zenity-3.4.0.patched/src/util.c	2012-07-23 15:02:32.306945495 +0200
@@ -325,10 +325,6 @@
 void
 zenity_util_exit_code_with_data(ZenityExitCode value, ZenityData *zen_data)
 {
-  /* We assume it's being called with --timeout option and should return 5) */
-  if(zen_data->timeout_delay > 0)
-    zen_data->exit_code = zenity_util_return_exit_code (ZENITY_TIMEOUT);
-  else
     zen_data->exit_code = zenity_util_return_exit_code (value);
 }
 

Reply via email to