2003-01-03 13:26:04 +00:00
|
|
|
#ifndef ZENITY_H
|
|
|
|
#define ZENITY_H
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
typedef struct {
|
2017-04-07 12:00:42 +00:00
|
|
|
gchar *dialog_title;
|
|
|
|
gchar *window_icon;
|
|
|
|
gchar *ok_label;
|
|
|
|
gchar *cancel_label;
|
|
|
|
gchar **extra_label;
|
|
|
|
gint width;
|
|
|
|
gint height;
|
|
|
|
gint exit_code;
|
|
|
|
gint timeout_delay;
|
|
|
|
gboolean modal;
|
|
|
|
guintptr attach;
|
2003-01-03 13:26:04 +00:00
|
|
|
} ZenityData;
|
|
|
|
|
2003-06-07 14:41:56 +00:00
|
|
|
typedef enum {
|
2017-04-07 12:00:42 +00:00
|
|
|
ZENITY_OK,
|
|
|
|
ZENITY_CANCEL,
|
|
|
|
ZENITY_ESC,
|
|
|
|
ZENITY_ERROR,
|
|
|
|
ZENITY_EXTRA,
|
|
|
|
ZENITY_TIMEOUT
|
2003-06-07 14:41:56 +00:00
|
|
|
} ZenityExitCode;
|
|
|
|
|
2003-01-03 13:26:04 +00:00
|
|
|
typedef struct {
|
2017-04-07 12:00:42 +00:00
|
|
|
gchar *dialog_text;
|
|
|
|
gchar *entry_text;
|
|
|
|
gboolean hide_text;
|
|
|
|
const gchar **data;
|
2003-01-03 13:26:04 +00:00
|
|
|
} ZenityEntryData;
|
|
|
|
|
|
|
|
typedef struct {
|
2017-04-07 12:00:42 +00:00
|
|
|
gchar *dialog_text;
|
|
|
|
GSList *columns;
|
|
|
|
gboolean checkbox;
|
|
|
|
gboolean radiobox;
|
|
|
|
gboolean hide_header;
|
|
|
|
gboolean imagebox;
|
|
|
|
gchar *separator;
|
|
|
|
gboolean multi;
|
|
|
|
gboolean editable;
|
|
|
|
gboolean mid_search;
|
|
|
|
gchar *print_column;
|
|
|
|
gchar *hide_column;
|
|
|
|
const gchar **data;
|
2003-01-03 13:26:04 +00:00
|
|
|
} ZenityTreeData;
|
|
|
|
|
2017-04-07 12:00:42 +00:00
|
|
|
void zenity_entry (ZenityData *data, ZenityEntryData *entry_data);
|
|
|
|
void zenity_tree (ZenityData *data, ZenityTreeData *tree_data);
|
2003-01-03 13:26:04 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* ZENITY_H */
|