summaryrefslogtreecommitdiff
path: root/util.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>1999-12-09 07:19:20 +0000
committerGuy Harris <guy@alum.mit.edu>1999-12-09 07:19:20 +0000
commit80618858d61d768373f42d46d6ccf0e80a303bce (patch)
tree403372c999954cf240f28ea03478f2b9c2bb3574 /util.h
parent0599f44d09c8799264cae5755b8dc338ce8391aa (diff)
downloadwireshark-80618858d61d768373f42d46d6ccf0e80a303bce.tar.gz
Move the GTK+ implementations of various UI utilities out of "util.c"
into "gtk/ui_util.c", and move the declarations of those UI utilities out of "util.h" into "ui_util.h". (The header file is in the top-level directory, rather than the "gtk" directory, because it declares window-system-independent interfaces to routines with window-system-dependent implementations.) Add to "gtk/ui_util.c" a routine to set the window and icon title. Use that routine to make the title of an Ethereal top-level window be {filename} - Ethereal if there's a capture open, and have "{filename}" be "<capture>" if it's a temporary capture file. svn path=/trunk/; revision=1255
Diffstat (limited to 'util.h')
-rw-r--r--util.h18
1 files changed, 1 insertions, 17 deletions
diff --git a/util.h b/util.h
index a09177a302..c36396b4fc 100644
--- a/util.h
+++ b/util.h
@@ -1,7 +1,7 @@
/* util.h
* Utility definitions
*
- * $Id: util.h,v 1.13 1999/11/22 06:24:42 gram Exp $
+ * $Id: util.h,v 1.14 1999/12/09 07:19:05 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -30,22 +30,6 @@
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
-
int create_tempfile(char *, int, const char *);
void ASCII_to_EBCDIC(guint8 *buf, guint bytes);