zenity/src/zenity.h

60 lines
1017 B
C
Raw Normal View History

2003-01-03 13:26:04 +00:00
#ifndef ZENITY_H
#define ZENITY_H
#include <gtk/gtk.h>
G_BEGIN_DECLS
typedef struct {
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;
typedef enum {
ZENITY_OK,
ZENITY_CANCEL,
ZENITY_ESC,
ZENITY_ERROR,
ZENITY_EXTRA,
ZENITY_TIMEOUT
} ZenityExitCode;
2003-01-03 13:26:04 +00:00
typedef struct {
gchar *dialog_text;
gchar *entry_text;
gboolean hide_text;
const gchar **data;
2003-01-03 13:26:04 +00:00
} ZenityEntryData;
typedef struct {
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;
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 */