diff options
author | Manish Singh <yosh@gimp.org> | 2002-10-08 23:07:02 +0000 |
---|---|---|
committer | Manish Singh <yosh@src.gnome.org> | 2002-10-08 23:07:02 +0000 |
commit | 951e202764342beb6a78123371356a2ddba09f0a (patch) | |
tree | 7aaaa0b5f66f801549f0a05b82430791e2b4662b /gtk/gtkvpaned.c | |
parent | 012230f127e58ed73ae82467bf0aa14cbd6b0cb0 (diff) | |
download | gdk-pixbuf-951e202764342beb6a78123371356a2ddba09f0a.tar.gz |
Deprecation cleanup
Tue Oct 8 15:25:53 2002 Manish Singh <yosh@gimp.org>
* gtk/gtkhpaned.[ch] gtk/gtkpaned.[ch] gtk/gtkprogress.[ch]
gtk/gtkprogressbar.[ch] gtk/gtkvpaned.[ch]: Deprecation cleanup
Diffstat (limited to 'gtk/gtkvpaned.c')
-rw-r--r-- | gtk/gtkvpaned.c | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/gtk/gtkvpaned.c b/gtk/gtkvpaned.c index 9024e6449..b7067e7c2 100644 --- a/gtk/gtkvpaned.c +++ b/gtk/gtkvpaned.c @@ -35,26 +35,28 @@ static void gtk_vpaned_size_allocate (GtkWidget *widget, static gpointer parent_class; -GtkType +GType gtk_vpaned_get_type (void) { - static GtkType vpaned_type = 0; + static GType vpaned_type = 0; if (!vpaned_type) { - static const GtkTypeInfo vpaned_info = + static const GTypeInfo vpaned_info = { - "GtkVPaned", - sizeof (GtkVPaned), sizeof (GtkVPanedClass), - (GtkClassInitFunc) gtk_vpaned_class_init, - (GtkObjectInitFunc) gtk_vpaned_init, - /* reserved_1 */ NULL, - /* reserved_2 */ NULL, - (GtkClassInitFunc) NULL, + NULL, /* base_init */ + NULL, /* base_finalize */ + (GClassInitFunc) gtk_vpaned_class_init, + NULL, /* class_finalize */ + NULL, /* class_data */ + sizeof (GtkVPaned), + 0, /* n_preallocs */ + (GInstanceInitFunc) gtk_vpaned_init, }; - vpaned_type = gtk_type_unique (GTK_TYPE_PANED, &vpaned_info); + vpaned_type = g_type_register_static (GTK_TYPE_PANED, "GtkVPaned", + &vpaned_info, 0); } return vpaned_type; @@ -65,7 +67,7 @@ gtk_vpaned_class_init (GtkVPanedClass *class) { GtkWidgetClass *widget_class; - parent_class = gtk_type_class (GTK_TYPE_PANED); + parent_class = g_type_class_peek_parent (class); widget_class = (GtkWidgetClass *) class; @@ -91,7 +93,7 @@ gtk_vpaned_new (void) { GtkVPaned *vpaned; - vpaned = gtk_type_new (GTK_TYPE_VPANED); + vpaned = g_object_new (GTK_TYPE_VPANED, NULL); return GTK_WIDGET (vpaned); } |