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.
This commit is contained in:
Elliot Lee
1998-11-30 19:07:15 +00:00
committed by Elliot Lee
parent 58ca2448eb
commit 060978e069
116 changed files with 217 additions and 160 deletions

View File

@ -34,7 +34,7 @@ gtk_radio_menu_item_get_type (void)
if (!radio_menu_item_type)
{
GtkTypeInfo radio_menu_item_info =
static const GtkTypeInfo radio_menu_item_info =
{
"GtkRadioMenuItem",
sizeof (GtkRadioMenuItem),