summaryrefslogtreecommitdiff
path: root/gdk/gdkwindow.c
diff options
context:
space:
mode:
authorElliot Lee <sopwith@cuc.ml.org>1998-11-30 19:07:15 +0000
committerElliot Lee <sopwith@src.gnome.org>1998-11-30 19:07:15 +0000
commit060978e069b3c1726c7a1fb3916c3e8c8348a813 (patch)
treeb92907dd3d6ca58cb5e5bf7e7481277feada033c /gdk/gdkwindow.c
parent58ca2448eb7d0a337fd83bd2951f5d9adde81b7c (diff)
downloadgtk+-060978e069b3c1726c7a1fb3916c3e8c8348a813.tar.gz
I submitted this patch twice to gtk-devel-list, and received no comments,
I submitted this patch twice to gtk-devel-list, and received no comments, so am committing it. Although not exhaustively tested, I have been using this gtk+ for a week w/o problems, and I did read the code to ensure that nothing ever writes to these data structures. If by chance people encounter SEGV's in gtk+ code that is setting values in global data structures, this patch could be a possible culprit. 1998-11-30 Elliot Lee <sopwith@cuc.ml.org> * {gdk,gtk}/*.c: Make read-only data structures "static const" to allow them to be shared, mainly including (but not limited to) the GtkTypeInfo structures for each class. * gtk/gtkfilesel.c: Add /net to the "leave me alone" directory listing.
Diffstat (limited to 'gdk/gdkwindow.c')
-rw-r--r--gdk/gdkwindow.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdk/gdkwindow.c b/gdk/gdkwindow.c
index 09399dcf1a..c8a42595ed 100644
--- a/gdk/gdkwindow.c
+++ b/gdk/gdkwindow.c
@@ -33,8 +33,7 @@
#include <X11/extensions/shape.h>
#endif
-int nevent_masks = 20;
-int event_mask_table[20] =
+const int event_mask_table[20] =
{
ExposureMask,
PointerMotionMask,
@@ -57,6 +56,7 @@ int event_mask_table[20] =
0, /* PROXIMTY_OUT */
SubstructureNotifyMask
};
+const int nevent_masks = sizeof(event_mask_table)/sizeof(int);
static gboolean gdk_window_have_shape_ext (void);