2003-01-03 13:26:04 +00:00
|
|
|
#ifndef ZENITY_H
|
|
|
|
#define ZENITY_H
|
|
|
|
|
|
|
|
#include <gtk/gtk.h>
|
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
#ifdef ENABLE_NLS
|
2003-01-13 17:35:57 +00:00
|
|
|
#include <libintl.h>
|
2003-01-03 13:26:04 +00:00
|
|
|
#define _(String) dgettext(GETTEXT_PACKAGE,String)
|
|
|
|
#ifdef gettext_noop
|
|
|
|
#define N_(String) gettext_noop(String)
|
|
|
|
#else
|
|
|
|
#define N_(String) (String)
|
|
|
|
#endif
|
|
|
|
#else /* NLS is disabled */
|
|
|
|
#define _(String) (String)
|
|
|
|
#define N_(String) (String)
|
|
|
|
#define textdomain(String) (String)
|
|
|
|
#define gettext(String) (String)
|
|
|
|
#define dgettext(Domain,String) (String)
|
|
|
|
#define dcgettext(Domain,String,Type) (String)
|
|
|
|
#define bindtextdomain(Domain,Directory) (Domain)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct {
|
Mass indentation cleanup. Make sure the glade dialogs aren't initially
2003-03-10 Glynn Foster <glynn.foster@sun.com>
* src/about.c, 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/util.c, src/util.h, src/zenity.glade, src/zenity.h:
Mass indentation cleanup. Make sure the glade dialogs aren't initially
visible because this avoids a visibility jump. Apparently == TRUE is
bad mojo. Fix up.
2003-03-10 17:11:18 +00:00
|
|
|
gchar *dialog_title;
|
|
|
|
gchar *window_icon;
|
2003-04-13 15:42:41 +00:00
|
|
|
gint width;
|
|
|
|
gint height;
|
Mass indentation cleanup. Make sure the glade dialogs aren't initially
2003-03-10 Glynn Foster <glynn.foster@sun.com>
* src/about.c, 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/util.c, src/util.h, src/zenity.glade, src/zenity.h:
Mass indentation cleanup. Make sure the glade dialogs aren't initially
visible because this avoids a visibility jump. Apparently == TRUE is
bad mojo. Fix up.
2003-03-10 17:11:18 +00:00
|
|
|
gint exit_code;
|
2003-01-03 13:26:04 +00:00
|
|
|
} ZenityData;
|
|
|
|
|
2003-06-07 14:41:56 +00:00
|
|
|
typedef enum {
|
|
|
|
ZENITY_OK,
|
|
|
|
ZENITY_CANCEL,
|
|
|
|
ZENITY_ESC,
|
|
|
|
ZENITY_ERROR,
|
|
|
|
ZENITY_EXTRA
|
|
|
|
} ZenityExitCode;
|
|
|
|
|
2003-01-03 13:26:04 +00:00
|
|
|
typedef struct {
|
Mass indentation cleanup. Make sure the glade dialogs aren't initially
2003-03-10 Glynn Foster <glynn.foster@sun.com>
* src/about.c, 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/util.c, src/util.h, src/zenity.glade, src/zenity.h:
Mass indentation cleanup. Make sure the glade dialogs aren't initially
visible because this avoids a visibility jump. Apparently == TRUE is
bad mojo. Fix up.
2003-03-10 17:11:18 +00:00
|
|
|
gchar *dialog_text;
|
|
|
|
gint day;
|
|
|
|
gint month;
|
|
|
|
gint year;
|
|
|
|
gchar *date_format;
|
2003-01-03 13:26:04 +00:00
|
|
|
} ZenityCalendarData;
|
|
|
|
|
|
|
|
typedef enum {
|
Mass indentation cleanup. Make sure the glade dialogs aren't initially
2003-03-10 Glynn Foster <glynn.foster@sun.com>
* src/about.c, 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/util.c, src/util.h, src/zenity.glade, src/zenity.h:
Mass indentation cleanup. Make sure the glade dialogs aren't initially
visible because this avoids a visibility jump. Apparently == TRUE is
bad mojo. Fix up.
2003-03-10 17:11:18 +00:00
|
|
|
ZENITY_MSG_WARNING,
|
|
|
|
ZENITY_MSG_QUESTION,
|
|
|
|
ZENITY_MSG_ERROR,
|
|
|
|
ZENITY_MSG_INFO
|
2003-01-03 13:26:04 +00:00
|
|
|
} MsgMode;
|
|
|
|
|
|
|
|
typedef struct {
|
Mass indentation cleanup. Make sure the glade dialogs aren't initially
2003-03-10 Glynn Foster <glynn.foster@sun.com>
* src/about.c, 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/util.c, src/util.h, src/zenity.glade, src/zenity.h:
Mass indentation cleanup. Make sure the glade dialogs aren't initially
visible because this avoids a visibility jump. Apparently == TRUE is
bad mojo. Fix up.
2003-03-10 17:11:18 +00:00
|
|
|
gchar *dialog_text;
|
|
|
|
MsgMode mode;
|
2003-01-03 13:26:04 +00:00
|
|
|
} ZenityMsgData;
|
|
|
|
|
|
|
|
typedef struct {
|
Mass indentation cleanup. Make sure the glade dialogs aren't initially
2003-03-10 Glynn Foster <glynn.foster@sun.com>
* src/about.c, 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/util.c, src/util.h, src/zenity.glade, src/zenity.h:
Mass indentation cleanup. Make sure the glade dialogs aren't initially
visible because this avoids a visibility jump. Apparently == TRUE is
bad mojo. Fix up.
2003-03-10 17:11:18 +00:00
|
|
|
gchar *uri;
|
2003-06-09 18:57:01 +00:00
|
|
|
gboolean multi;
|
|
|
|
gchar *separator;
|
2003-01-03 13:26:04 +00:00
|
|
|
} ZenityFileData;
|
|
|
|
|
|
|
|
typedef struct {
|
Mass indentation cleanup. Make sure the glade dialogs aren't initially
2003-03-10 Glynn Foster <glynn.foster@sun.com>
* src/about.c, 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/util.c, src/util.h, src/zenity.glade, src/zenity.h:
Mass indentation cleanup. Make sure the glade dialogs aren't initially
visible because this avoids a visibility jump. Apparently == TRUE is
bad mojo. Fix up.
2003-03-10 17:11:18 +00:00
|
|
|
gchar *dialog_text;
|
|
|
|
gchar *entry_text;
|
|
|
|
gboolean visible;
|
2003-01-03 13:26:04 +00:00
|
|
|
} ZenityEntryData;
|
|
|
|
|
|
|
|
typedef struct {
|
Mass indentation cleanup. Make sure the glade dialogs aren't initially
2003-03-10 Glynn Foster <glynn.foster@sun.com>
* src/about.c, 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/util.c, src/util.h, src/zenity.glade, src/zenity.h:
Mass indentation cleanup. Make sure the glade dialogs aren't initially
visible because this avoids a visibility jump. Apparently == TRUE is
bad mojo. Fix up.
2003-03-10 17:11:18 +00:00
|
|
|
gchar *dialog_text;
|
|
|
|
gchar *entry_text;
|
|
|
|
gboolean pulsate;
|
2003-06-03 21:52:16 +00:00
|
|
|
gboolean autoclose;
|
Mass indentation cleanup. Make sure the glade dialogs aren't initially
2003-03-10 Glynn Foster <glynn.foster@sun.com>
* src/about.c, 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/util.c, src/util.h, src/zenity.glade, src/zenity.h:
Mass indentation cleanup. Make sure the glade dialogs aren't initially
visible because this avoids a visibility jump. Apparently == TRUE is
bad mojo. Fix up.
2003-03-10 17:11:18 +00:00
|
|
|
gdouble percentage;
|
2003-01-03 13:26:04 +00:00
|
|
|
} ZenityProgressData;
|
|
|
|
|
|
|
|
typedef struct {
|
Mass indentation cleanup. Make sure the glade dialogs aren't initially
2003-03-10 Glynn Foster <glynn.foster@sun.com>
* src/about.c, 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/util.c, src/util.h, src/zenity.glade, src/zenity.h:
Mass indentation cleanup. Make sure the glade dialogs aren't initially
visible because this avoids a visibility jump. Apparently == TRUE is
bad mojo. Fix up.
2003-03-10 17:11:18 +00:00
|
|
|
gchar *uri;
|
|
|
|
gboolean editable;
|
|
|
|
GtkTextBuffer *buffer;
|
2003-01-03 13:26:04 +00:00
|
|
|
} ZenityTextData;
|
|
|
|
|
|
|
|
typedef struct {
|
Mass indentation cleanup. Make sure the glade dialogs aren't initially
2003-03-10 Glynn Foster <glynn.foster@sun.com>
* src/about.c, 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/util.c, src/util.h, src/zenity.glade, src/zenity.h:
Mass indentation cleanup. Make sure the glade dialogs aren't initially
visible because this avoids a visibility jump. Apparently == TRUE is
bad mojo. Fix up.
2003-03-10 17:11:18 +00:00
|
|
|
gchar *dialog_text;
|
|
|
|
GSList *columns;
|
|
|
|
gboolean checkbox;
|
|
|
|
gboolean radiobox;
|
|
|
|
gchar *separator;
|
|
|
|
gboolean editable;
|
|
|
|
const gchar **data;
|
2003-01-03 13:26:04 +00:00
|
|
|
} ZenityTreeData;
|
|
|
|
|
Mass indentation cleanup. Make sure the glade dialogs aren't initially
2003-03-10 Glynn Foster <glynn.foster@sun.com>
* src/about.c, 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/util.c, src/util.h, src/zenity.glade, src/zenity.h:
Mass indentation cleanup. Make sure the glade dialogs aren't initially
visible because this avoids a visibility jump. Apparently == TRUE is
bad mojo. Fix up.
2003-03-10 17:11:18 +00:00
|
|
|
void zenity_calendar (ZenityData *data,
|
|
|
|
ZenityCalendarData *calendar_data);
|
|
|
|
void zenity_msg (ZenityData *data,
|
|
|
|
ZenityMsgData *msg_data);
|
|
|
|
void zenity_fileselection (ZenityData *data,
|
|
|
|
ZenityFileData *file_data);
|
|
|
|
void zenity_entry (ZenityData *data,
|
|
|
|
ZenityEntryData *entry_data);
|
|
|
|
void zenity_progress (ZenityData *data,
|
|
|
|
ZenityProgressData *progress_data);
|
|
|
|
void zenity_text (ZenityData *data,
|
|
|
|
ZenityTextData *text_data);
|
|
|
|
void zenity_tree (ZenityData *data,
|
|
|
|
ZenityTreeData *tree_data);
|
2003-01-14 15:35:24 +00:00
|
|
|
void zenity_about (ZenityData *data);
|
2003-01-03 13:26:04 +00:00
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* ZENITY_H */
|