typedef gint gboolean; this is needed to provide portability with
Thu May 14 04:14:12 1998 Tim Janik <timj@gtk.org> * glib.h: typedef gint gboolean; this is needed to provide portability with big-endian platforms (e.g. try sizeof(bool) for c++ on big-endians - it's 4). this is also needed to maintain some_union.d_gint==some_union.d_gboolean. plus, gint to gboolean casts and vice versa need to be possible without loss. Thu May 14 03:04:43 1998 Tim Janik <timj@gtk.org> * gtk/gtktypeutils.c (gtk_type_free): new function to take care about freeing types. (gtk_type_set_chunk_alloc): new function to allow allocation of new types from a mem_chunk of certain size (n_chunks==0 indicates allocation thorugh g_malloc). * gtk/gtkobject.c (gtk_object_finalize): free an object through gtk_type_free(). * gtk/gtkbutton.c (gtk_button_get_type): set chunk preallocation for GtkButtons to 16. * gtk/gtkmenuitem.c (gtk_menu_item_get_type): likewise (16). * gtk/gtklabel.c (gtk_label_get_type): likewise (32).
This commit is contained in:
@ -88,6 +88,7 @@ gtk_menu_item_get_type (void)
|
||||
};
|
||||
|
||||
menu_item_type = gtk_type_unique (gtk_item_get_type (), &menu_item_info);
|
||||
gtk_type_set_chunk_alloc (menu_item_type, 16);
|
||||
}
|
||||
|
||||
return menu_item_type;
|
||||
|
||||
Reference in New Issue
Block a user