summaryrefslogtreecommitdiff
path: root/src/calendar.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/calendar.c
parentf77a0199af3a3d1362be95ab651186546492e8cd (diff)
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/calendar.c')
-rw-r--r--src/calendar.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/calendar.c b/src/calendar.c
index 60931c4..32825da 100644
--- a/src/calendar.c
+++ b/src/calendar.c
@@ -112,8 +112,7 @@ zenity_calendar_dialog_response (GtkWidget *widget, int response, gpointer data)
if (date != NULL)
g_date_free (date);
-
- zen_data->exit_code = zenity_util_return_exit_code (ZENITY_OK);
+ zenity_util_exit_code_with_data (ZENITY_OK, zen_data);
break;
case GTK_RESPONSE_CANCEL: