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/gtkhbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gtk/gtkhbox.c') diff --git a/gtk/gtkhbox.c b/gtk/gtkhbox.c index 0dbc258019..6c3db74849 100644 --- a/gtk/gtkhbox.c +++ b/gtk/gtkhbox.c @@ -34,7 +34,7 @@ gtk_hbox_get_type (void) if (!hbox_type) { - GtkTypeInfo hbox_info = + static const GtkTypeInfo hbox_info = { "GtkHBox", sizeof (GtkHBox), -- cgit v1.2.1