From 6a65d75921d352323277f770f357ca3065436133 Mon Sep 17 00:00:00 2001 From: Glynn Foster Date: Tue, 7 Jan 2003 13:22:57 +0000 Subject: Fix up the response signal handlers. Use returns of 0 for 'Ok' and 2003-01-07 Glynn Foster * src/calendar.c, src/entry.c, src/fileselection.c, src/main.c, src/msg.c, src/progress.c, src/text.c, src/tree.c, src/zenity.glade, src/zenity.h: Fix up the response signal handlers. Use returns of 0 for 'Ok' and 'Close', 1 for 'Cancel' and 'Escape' and -1 for 'Uh Oh'. Get stuff printing to stderr. Fix up the error handling that I thought was improved, although still have issues with popt callback getting called numerous times because of more than one instance of the same kind is being used in poptOption. * TODO: Update accordingly. --- src/zenity.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'src/zenity.h') diff --git a/src/zenity.h b/src/zenity.h index e338760..9df373c 100644 --- a/src/zenity.h +++ b/src/zenity.h @@ -26,6 +26,7 @@ G_BEGIN_DECLS typedef struct { gchar *dialog_title; gchar *window_icon; + gint exit_code; } ZenityData; typedef struct { @@ -76,19 +77,19 @@ typedef struct { const gchar **data; } ZenityTreeData; -int zenity_calendar (ZenityData *data, +void zenity_calendar (ZenityData *data, ZenityCalendarData *calendar_data); -int zenity_msg (ZenityData *data, +void zenity_msg (ZenityData *data, ZenityMsgData *msg_data); -int zenity_fileselection (ZenityData *data, +void zenity_fileselection (ZenityData *data, ZenityFileData *file_data); -int zenity_entry (ZenityData *data, +void zenity_entry (ZenityData *data, ZenityEntryData *entry_data); -int zenity_progress (ZenityData *data, +void zenity_progress (ZenityData *data, ZenityProgressData *progress_data); -int zenity_text (ZenityData *data, +void zenity_text (ZenityData *data, ZenityTextData *text_data); -int zenity_tree (ZenityData *data, +void zenity_tree (ZenityData *data, ZenityTreeData *tree_data); G_END_DECLS -- cgit v1.2.3-54-g00ecf