From 4096029a6678887f0e365f65da3aef593226efbe Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Mon, 3 Jan 2000 06:59:25 +0000 Subject: Take the "simple_dialog()" stuff out of "ui_util.h" and "gtk/ui_util.c", and move it to "simple_dialog.h" and "gtk/simple_dialog.c". svn path=/trunk/; revision=1414 --- simple_dialog.h | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 simple_dialog.h (limited to 'simple_dialog.h') diff --git a/simple_dialog.h b/simple_dialog.h new file mode 100644 index 0000000000..9afdf1f1e5 --- /dev/null +++ b/simple_dialog.h @@ -0,0 +1,54 @@ +/* simple_dialog.h + * Definitions for dialog box routines with toolkit-independent APIs but + * toolkit-dependent implementations. + * + * $Id: simple_dialog.h,v 1.1 2000/01/03 06:59:09 guy Exp $ + * + * Ethereal - Network traffic analyzer + * By Gerald Combs + * Copyright 1998 Gerald Combs + * + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#ifndef __DIALOG_H__ +#define __DIALOG_H__ + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/* Dialog type. */ +#define ESD_TYPE_INFO 0 +#define ESD_TYPE_WARN 1 +#define ESD_TYPE_CRIT 2 + +/* Which buttons to display. */ +#define ESD_BTN_OK 0 +#define ESD_BTN_CANCEL 1 + +#if __GNUC__ == 2 +void simple_dialog(gint, gint *, gchar *, ...) + __attribute__((format (printf, 3, 4))); +#else +void simple_dialog(gint, gint *, gchar *, ...); +#endif + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __DIALOG_H__ */ -- cgit v1.2.3