summaryrefslogtreecommitdiff
path: root/gdk/gdkvisual.c
diff options
context:
space:
mode:
authorOwen Taylor <owt1@cornell.edu>1998-03-17 19:03:52 +0000
committerOwen Taylor <otaylor@src.gnome.org>1998-03-17 19:03:52 +0000
commit70b3b3e6e17331f34748528d71eeebec9101cde0 (patch)
treeec24fdb9dc06a5e45a2db12f4f76bcbbeb6da4cf /gdk/gdkvisual.c
parenta783d668f17a08fbdf88c22aa6c07b05b4e8de34 (diff)
downloadgtk+-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 'gdk/gdkvisual.c')
-rw-r--r--gdk/gdkvisual.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdk/gdkvisual.c b/gdk/gdkvisual.c
index 4a86e37739..65b347dd98 100644
--- a/gdk/gdkvisual.c
+++ b/gdk/gdkvisual.c
@@ -40,6 +40,8 @@ static gint navailable_depths;
static GdkVisualType available_types[6];
static gint navailable_types;
+#ifdef G_ENABLE_DEBUG
+
static gchar* visual_names[] =
{
"static gray",
@@ -50,6 +52,8 @@ static gchar* visual_names[] =
"direct color",
};
+#endif /* G_ENABLE_DEBUG */
+
static GHashTable *visual_hash = NULL;
void