diff options
author | Owen Taylor <owt1@cornell.edu> | 1998-03-17 19:03:52 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 1998-03-17 19:03:52 +0000 |
commit | 70b3b3e6e17331f34748528d71eeebec9101cde0 (patch) | |
tree | ec24fdb9dc06a5e45a2db12f4f76bcbbeb6da4cf /gtk/gtkprivate.h | |
parent | a783d668f17a08fbdf88c22aa6c07b05b4e8de34 (diff) | |
download | gdk-pixbuf-70b3b3e6e17331f34748528d71eeebec9101cde0.tar.gz |
Try to guess if we can use the mb* functions safely. (For glibc, they do
Tue Mar 17 01:55:00 1998 Owen Taylor <owt1@cornell.edu>
* gtk/gtkmain.c gtk/gtkentry.c: Try to guess if we can
use the mb* functions safely. (For glibc, they do
UTF-8). Heuristic is (X_LOCALE && locale != C/POSIX)
|| (mblen("\xc0", MB_CUR_MAX) == 1).
(From: "Richard Lloyd" <rkl@csc.liv.ac.uk>)
* gdk/gdk.c (gdk_ic_get_attr): Use an intermediate
variable to avoid taking the address of the result
of va_arg.
* gtk/gtkentry.c gtk/gtkeditable.c gtkobject.c
gtk/testselection.c: signedness fixups
* gtk/gtkcontainer.c: Fixed implicit cast between
gpointer and func pointer by changing.
* gtk/gtkcombo.c, gtk/gtkentry.c, gtk/gtktext.c:
static void forward declaration vs. void actual fixed
* gtk/testgtk.c: Limit total number of tree items to 10,000
Diffstat (limited to 'gtk/gtkprivate.h')
-rw-r--r-- | gtk/gtkprivate.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk/gtkprivate.h b/gtk/gtkprivate.h index ec4bd4d0c..0c710ce2e 100644 --- a/gtk/gtkprivate.h +++ b/gtk/gtkprivate.h @@ -60,7 +60,11 @@ enum #define GTK_PRIVATE_SET_FLAG(wid,flag) G_STMT_START{ (GTK_PRIVATE_FLAGS (wid) |= (PRIVATE_ ## flag)); }G_STMT_END #define GTK_PRIVATE_UNSET_FLAG(wid,flag) G_STMT_START{ (GTK_PRIVATE_FLAGS (wid) &= ~(PRIVATE_ ## flag)); }G_STMT_END - +/* True if there is a good chance the mb functions will handle things + * correctly - set if either mblen("\xc0", MB_CUR_MAX) == 1 in the + * C locale, or were using X's mb functions. (-DX_LOCALE && locale != C) + */ +extern gboolean gtk_use_mb; #ifdef __cplusplus } |