summaryrefslogtreecommitdiff
path: root/gdk/gdk.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/gdk.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/gdk.c')
-rw-r--r--gdk/gdk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdk/gdk.c b/gdk/gdk.c
index 36e0fb1438..f504ea313a 100644
--- a/gdk/gdk.c
+++ b/gdk/gdk.c
@@ -229,7 +229,7 @@ static gulong base_id;
static gint autorepeat;
#ifdef G_ENABLE_DEBUG
-static GDebugKey gdk_debug_keys[] = {
+static const GDebugKey gdk_debug_keys[] = {
{"events", GDK_DEBUG_EVENTS},
{"misc", GDK_DEBUG_MISC},
{"dnd", GDK_DEBUG_DND},
@@ -1504,8 +1504,8 @@ gdk_pointer_grab (GdkWindow * window,
guint32 time)
{
/* From gdkwindow.c */
- extern int nevent_masks;
- extern int event_mask_table[];
+ extern const int nevent_masks;
+ extern const int event_mask_table[];
gint return_val;
GdkWindowPrivate *window_private;