summaryrefslogtreecommitdiff
path: root/src/text.c
diff options
context:
space:
mode:
authorArx Cruz <arxcruz@src.gnome.org>2011-06-17 10:47:07 -0300
committerArx Cruz <arxcruz@src.gnome.org>2011-06-17 10:51:00 -0300
commitd60e5eeeb379e5444ad218d7335b17eaa821b182 (patch)
tree8a593fdb55754ad668dbac29ef342e384303e1fd /src/text.c
parentFix the msg forms (question, warning, error) to return 5 when timeout (diff)
downloadzenity-d60e5eeeb379e5444ad218d7335b17eaa821b182.tar.gz
zenity-d60e5eeeb379e5444ad218d7335b17eaa821b182.tar.bz2
zenity-d60e5eeeb379e5444ad218d7335b17eaa821b182.zip
Now if you use --timeout option, the return code will be properly handled
The default behavior will be done (ie. user click on ok button) The return code will be 5
Diffstat (limited to 'src/text.c')
-rw-r--r--src/text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text.c b/src/text.c
index 147e7066..98686750 100644
--- a/src/text.c
+++ b/src/text.c
@@ -187,7 +187,7 @@ zenity_text_dialog_response (GtkWidget *widget, int response, gpointer data)
default:
/* Esc dialog */
- zen_data->exit_code = zenity_util_return_exit_code (ZENITY_ESC);
+ zenity_util_exit_code_with_data(ZENITY_ESC, zen_data);
break;
}
gtk_main_quit ();
bgstack15