Make the definition of "simple_dialog()" match its declaration.

Make the "type" argument to "vsimple_dialog()" also be an ESD_TYPE_E.

svn path=/trunk/; revision=11112
This commit is contained in:
Guy Harris 2004-06-04 21:12:01 +00:00
parent f760b2d11c
commit 9e6a540f10
2 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
/* simple_dialog.c
* Simple message dialog box routines.
*
* $Id: simple_dialog.c,v 1.35 2004/05/26 03:49:24 ulfl Exp $
* $Id: simple_dialog.c,v 1.36 2004/06/04 21:12:01 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -248,7 +248,7 @@ display_queued_messages(void)
*/
gpointer
vsimple_dialog(gint type, gint btn_mask, const gchar *msg_format, va_list ap)
vsimple_dialog(ESD_TYPE_E type, gint btn_mask, const gchar *msg_format, va_list ap)
{
gchar *message;
queued_message_t *queued_message;
@ -296,7 +296,7 @@ vsimple_dialog(gint type, gint btn_mask, const gchar *msg_format, va_list ap)
}
gpointer
simple_dialog(gint type, gint btn_mask, const gchar *msg_format, ...)
simple_dialog(ESD_TYPE_E type, gint btn_mask, const gchar *msg_format, ...)
{
va_list ap;
gpointer ret;

View File

@ -2,7 +2,7 @@
* Definitions for alert box routines with toolkit-independent APIs but
* toolkit-dependent implementations.
*
* $Id: simple_dialog.h,v 1.14 2004/06/04 20:04:34 ulfl Exp $
* $Id: simple_dialog.h,v 1.15 2004/06/04 21:12:01 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@ -84,7 +84,7 @@ extern gpointer simple_dialog(ESD_TYPE_E type, gint btn_mask,
* @param ap parameters
* @return the newly created dialog
*/
extern gpointer vsimple_dialog(gint type, gint btn_mask,
extern gpointer vsimple_dialog(ESD_TYPE_E type, gint btn_mask,
const gchar *msg_format, va_list ap);
#else
/** Create and show a simple dialog.