diff options
author | Manish Singh <yosh@gimp.org> | 2002-10-07 04:29:52 +0000 |
---|---|---|
committer | Manish Singh <yosh@src.gnome.org> | 2002-10-07 04:29:52 +0000 |
commit | 285c8f78fc52a07a59593219d8d4f195e3470eb5 (patch) | |
tree | cbb882fc545cdd9b379aea4a4afb4627403b1bed /gtk/gtkhbox.c | |
parent | 28def5e4ad3ad4998e222f4975fc0e63e89aad65 (diff) | |
download | gtk+-285c8f78fc52a07a59593219d8d4f195e3470eb5.tar.gz |
Deprecation cleanup
Sun Oct 6 21:23:29 2002 Manish Singh <yosh@gimp.org>
* gtk/gtkcontainer.[ch] gtk/gtkbox.[ch] gtk/gtkhbox.[ch]
gtk/gtkvbox.[ch]: Deprecation cleanup
Diffstat (limited to 'gtk/gtkhbox.c')
-rw-r--r-- | gtk/gtkhbox.c | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/gtk/gtkhbox.c b/gtk/gtkhbox.c index 2d85593e95..90d1e63de0 100644 --- a/gtk/gtkhbox.c +++ b/gtk/gtkhbox.c @@ -35,26 +35,28 @@ static void gtk_hbox_size_allocate (GtkWidget *widget, GtkAllocation *allocation); -GtkType +GType gtk_hbox_get_type (void) { - static GtkType hbox_type = 0; + static GType hbox_type = 0; if (!hbox_type) { - static const GtkTypeInfo hbox_info = + static const GTypeInfo hbox_info = { - "GtkHBox", - sizeof (GtkHBox), sizeof (GtkHBoxClass), - (GtkClassInitFunc) gtk_hbox_class_init, - (GtkObjectInitFunc) gtk_hbox_init, - /* reserved_1 */ NULL, - /* reserved_2 */ NULL, - (GtkClassInitFunc) NULL, + NULL, /* base_init */ + NULL, /* base_finalize */ + (GClassInitFunc) gtk_hbox_class_init, + NULL, /* class_finalize */ + NULL, /* class_data */ + sizeof (GtkHBox), + 0, /* n_preallocs */ + (GInstanceInitFunc) gtk_hbox_init, }; - hbox_type = gtk_type_unique (GTK_TYPE_BOX, &hbox_info); + hbox_type = g_type_register_static (GTK_TYPE_BOX, "GtkHBox", + &hbox_info, 0); } return hbox_type; @@ -82,7 +84,7 @@ gtk_hbox_new (gboolean homogeneous, { GtkHBox *hbox; - hbox = gtk_type_new (gtk_hbox_get_type ()); + hbox = g_object_new (GTK_TYPE_HBOX, NULL); GTK_BOX (hbox)->spacing = spacing; GTK_BOX (hbox)->homogeneous = homogeneous ? TRUE : FALSE; |