diff options
author | Gilbert Ramirez <gram@alumni.rice.edu> | 2001-04-10 12:07:40 +0000 |
---|---|---|
committer | Gilbert Ramirez <gram@alumni.rice.edu> | 2001-04-10 12:07:40 +0000 |
commit | 2a2b4bb6b45f2591ad3e8f18392a92967f4be33d (patch) | |
tree | 4f94876aa27d63a2ce4d21b43bcc9e31c9f15c7c /gtk/gtkglobals.h | |
parent | 61f7a8eb4b9095da1fd7470262e0743694c86fc4 (diff) | |
download | wireshark-2a2b4bb6b45f2591ad3e8f18392a92967f4be33d.tar.gz wireshark-2a2b4bb6b45f2591ad3e8f18392a92967f4be33d.tar.bz2 wireshark-2a2b4bb6b45f2591ad3e8f18392a92967f4be33d.zip |
Check in isprint() hack for Win32 so that Ethereal is usably while
we figure out what the real bug is.
Fix set_last_open_dir() to use G_DIR_SEPARATOR and G_DIR_SEPARATOR_S
for cross-platform compatibility.
svn path=/trunk/; revision=3281
Diffstat (limited to 'gtk/gtkglobals.h')
-rw-r--r-- | gtk/gtkglobals.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/gtk/gtkglobals.h b/gtk/gtkglobals.h index 028a866112..efe5400b28 100644 --- a/gtk/gtkglobals.h +++ b/gtk/gtkglobals.h @@ -1,7 +1,7 @@ /* gtkglobals.h * GTK-related Global defines, etc. * - * $Id: gtkglobals.h,v 1.13 2001/03/23 14:44:04 jfoster Exp $ + * $Id: gtkglobals.h,v 1.14 2001/04/10 12:07:39 gram Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -44,4 +44,18 @@ void remember_scrolled_window(GtkWidget *); void set_plist_sel_browse(gboolean); void set_plist_font(GdkFont *font); +#ifdef _WIN32 +/* It appears that isprint() is not working well + * with gtk+'s text widget. By narrowing down what + * we print, the ascii portion of the hex display works. + * MSVCRT's isprint() returns true on values like 0xd2, + * which cause the GtkTextWidget to go wacko. + * + * This is a quick fix for the symptom, not the + * underlying problem. + */ +#define isprint(c) (c >= 0x20 && c <= 0x7f) +#endif + + #endif |