diff options
author | Arx Cruz <arxcruz@src.gnome.org> | 2011-06-17 10:47:07 -0300 |
---|---|---|
committer | Arx Cruz <arxcruz@src.gnome.org> | 2011-06-17 10:51:00 -0300 |
commit | d60e5eeeb379e5444ad218d7335b17eaa821b182 (patch) | |
tree | 8a593fdb55754ad668dbac29ef342e384303e1fd /src/entry.c | |
parent | Fix the msg forms (question, warning, error) to return 5 when timeout (diff) | |
download | zenity-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/entry.c')
-rw-r--r-- | src/entry.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entry.c b/src/entry.c index ce6cda50..d8111c04 100644 --- a/src/entry.c +++ b/src/entry.c @@ -143,7 +143,7 @@ zenity_entry_dialog_response (GtkWidget *widget, int response, gpointer data) switch (response) { case GTK_RESPONSE_OK: - zen_data->exit_code = zenity_util_return_exit_code (ZENITY_OK); + zenity_util_exit_code_with_data(ZENITY_OK, zen_data); if (n_entries > 1) { text = gtk_combo_box_text_get_active_text (GTK_COMBO_BOX_TEXT (entry)); } |