diff options
author | Elliot Lee <sopwith@cuc.ml.org> | 1998-11-30 19:07:15 +0000 |
---|---|---|
committer | Elliot Lee <sopwith@src.gnome.org> | 1998-11-30 19:07:15 +0000 |
commit | 060978e069b3c1726c7a1fb3916c3e8c8348a813 (patch) | |
tree | b92907dd3d6ca58cb5e5bf7e7481277feada033c /gtk/gtkaccelgroup.c | |
parent | 58ca2448eb7d0a337fd83bd2951f5d9adde81b7c (diff) | |
download | gtk+-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 'gtk/gtkaccelgroup.c')
-rw-r--r-- | gtk/gtkaccelgroup.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkaccelgroup.c b/gtk/gtkaccelgroup.c index 06d2cc37ff..f929912fbe 100644 --- a/gtk/gtkaccelgroup.c +++ b/gtk/gtkaccelgroup.c @@ -702,7 +702,7 @@ gboolean gtk_accelerator_valid (guint keyval, GdkModifierType modifiers) { - guint invalid_accelerator_vals[] = { + static const guint invalid_accelerator_vals[] = { GDK_BackSpace, GDK_Delete, GDK_KP_Delete, GDK_Shift_L, GDK_Shift_R, GDK_Shift_Lock, GDK_Caps_Lock, GDK_ISO_Lock, GDK_Control_L, GDK_Control_R, GDK_Meta_L, GDK_Meta_R, @@ -880,7 +880,7 @@ gtk_accelerator_parse (const gchar *accelerator, } else if (len >= 6 && is_modx (accelerator)) { - guint mod_vals[] = { + static const guint mod_vals[] = { GDK_MOD1_MASK, GDK_MOD2_MASK, GDK_MOD3_MASK, GDK_MOD4_MASK, GDK_MOD5_MASK }; |