diff options
author | Tim Janik <timj@gtk.org> | 1998-05-14 21:13:18 +0000 |
---|---|---|
committer | Tim Janik <timj@src.gnome.org> | 1998-05-14 21:13:18 +0000 |
commit | 004f0982e165a319fdab4a6573b1a291d14d7192 (patch) | |
tree | ee369d64039e66edef652c07eb5c9992eff70a3b /gtk/gtkbutton.c | |
parent | 344a271704f8fd9313c4c5c2fe85cf274dee8bef (diff) | |
download | gtk+-004f0982e165a319fdab4a6573b1a291d14d7192.tar.gz |
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).
Diffstat (limited to 'gtk/gtkbutton.c')
-rw-r--r-- | gtk/gtkbutton.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/gtkbutton.c b/gtk/gtkbutton.c index d54c98b645..9c4afe0b30 100644 --- a/gtk/gtkbutton.c +++ b/gtk/gtkbutton.c @@ -112,6 +112,7 @@ gtk_button_get_type (void) }; button_type = gtk_type_unique (gtk_container_get_type (), &button_info); + gtk_type_set_chunk_alloc (button_type, 16); } return button_type; |