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:
@ -45,7 +45,7 @@ gtk_vruler_get_type (void)
|
||||
|
||||
if (!vruler_type)
|
||||
{
|
||||
GtkTypeInfo vruler_info =
|
||||
static const GtkTypeInfo vruler_info =
|
||||
{
|
||||
"GtkVRuler",
|
||||
sizeof (GtkVRuler),
|
||||
|
||||
Reference in New Issue
Block a user