diff options
author | Manish Singh <yosh@gimp.org> | 2002-10-04 22:49:28 +0000 |
---|---|---|
committer | Manish Singh <yosh@src.gnome.org> | 2002-10-04 22:49:28 +0000 |
commit | 2aa899147773436da85d0b43711c526c3ee8cf99 (patch) | |
tree | 620113290ff719826a224d9dd5a1b6a181264343 /gtk/gtkhbbox.c | |
parent | fc7534bbcbf839799a145dcf106d3a9f7eb8a570 (diff) | |
download | gtk+-2aa899147773436da85d0b43711c526c3ee8cf99.tar.gz |
Deprecation cleanup
Fri Oct 4 15:47:06 2002 Manish Singh <yosh@gimp.org>
* gtkbbox.[ch] gtkhbbox.[ch] gtkhscale.[ch] gtkscale.[ch]
gtkvscale.[ch] gtkvbbox.[ch]: Deprecation cleanup
Diffstat (limited to 'gtk/gtkhbbox.c')
-rw-r--r-- | gtk/gtkhbbox.c | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/gtk/gtkhbbox.c b/gtk/gtkhbbox.c index fee56b4177..cf79327235 100644 --- a/gtk/gtkhbbox.c +++ b/gtk/gtkhbbox.c @@ -37,26 +37,29 @@ static void gtk_hbutton_box_size_allocate (GtkWidget *widget, static gint default_spacing = 30; static gint default_layout_style = GTK_BUTTONBOX_EDGE; -GtkType +GType gtk_hbutton_box_get_type (void) { - static GtkType hbutton_box_type = 0; + static GType hbutton_box_type = 0; if (!hbutton_box_type) { - static const GtkTypeInfo hbutton_box_info = + static const GTypeInfo hbutton_box_info = { - "GtkHButtonBox", - sizeof (GtkHButtonBox), sizeof (GtkHButtonBoxClass), - (GtkClassInitFunc) gtk_hbutton_box_class_init, - (GtkObjectInitFunc) gtk_hbutton_box_init, - /* reserved_1 */ NULL, - /* reserved_2 */ NULL, - (GtkClassInitFunc) NULL, + NULL, /* base_init */ + NULL, /* base_finalize */ + (GClassInitFunc) gtk_hbutton_box_class_init, + NULL, /* class_finalize */ + NULL, /* class_data */ + sizeof (GtkHButtonBox), + 0, /* n_preallocs */ + (GInstanceInitFunc) gtk_hbutton_box_init, }; - hbutton_box_type = gtk_type_unique (GTK_TYPE_BUTTON_BOX, &hbutton_box_info); + hbutton_box_type = + g_type_register_static (GTK_TYPE_BUTTON_BOX, "GtkHButtonBox", + &hbutton_box_info, 0); } return hbutton_box_type; @@ -84,7 +87,7 @@ gtk_hbutton_box_new (void) { GtkHButtonBox *hbutton_box; - hbutton_box = gtk_type_new (GTK_TYPE_HBUTTON_BOX); + hbutton_box = g_object_new (GTK_TYPE_HBUTTON_BOX, NULL); return GTK_WIDGET (hbutton_box); } |