From 060978e069b3c1726c7a1fb3916c3e8c8348a813 Mon Sep 17 00:00:00 2001 From: Elliot Lee Date: Mon, 30 Nov 1998 19:07:15 +0000 Subject: 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 * {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. --- gtk/gtkinvisible.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk/gtkinvisible.c') diff --git a/gtk/gtkinvisible.c b/gtk/gtkinvisible.c index 8233184e75..e0b6744ce3 100644 --- a/gtk/gtkinvisible.c +++ b/gtk/gtkinvisible.c @@ -33,7 +33,7 @@ gtk_invisible_get_type (void) if (!invisible_type) { - GtkTypeInfo invisible_info = + static const GtkTypeInfo invisible_info = { "GtkInvisible", sizeof (GtkInvisible), -- cgit v1.2.1