diff options
author | Glynn Foster <glynn.foster@sun.com> | 2003-01-07 13:22:57 +0000 |
---|---|---|
committer | Glynn Foster <gman@src.gnome.org> | 2003-01-07 13:22:57 +0000 |
commit | 6a65d75921d352323277f770f357ca3065436133 (patch) | |
tree | 46f760232c30486ecaff09686e0006f83f9a1eca /src/zenity.h | |
parent | Fix up the error returns. (diff) | |
download | zenity-6a65d75921d352323277f770f357ca3065436133.tar.gz zenity-6a65d75921d352323277f770f357ca3065436133.tar.bz2 zenity-6a65d75921d352323277f770f357ca3065436133.zip |
Fix up the response signal handlers. Use returns of 0 for 'Ok' and
2003-01-07 Glynn Foster <glynn.foster@sun.com>
* 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.
Diffstat (limited to 'src/zenity.h')
-rw-r--r-- | src/zenity.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/zenity.h b/src/zenity.h index e3387608..9df373c5 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 |