summaryrefslogtreecommitdiff
path: root/gtk/gtkhpaned.c
diff options
context:
space:
mode:
authorManish Singh <yosh@gimp.org>2002-10-08 23:07:02 +0000
committerManish Singh <yosh@src.gnome.org>2002-10-08 23:07:02 +0000
commit951e202764342beb6a78123371356a2ddba09f0a (patch)
tree7aaaa0b5f66f801549f0a05b82430791e2b4662b /gtk/gtkhpaned.c
parent012230f127e58ed73ae82467bf0aa14cbd6b0cb0 (diff)
downloadgtk+-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/gtkhpaned.c')
-rw-r--r--gtk/gtkhpaned.c28
1 files changed, 15 insertions, 13 deletions
diff --git a/gtk/gtkhpaned.c b/gtk/gtkhpaned.c
index 27eb316e07..3aad90a5e9 100644
--- a/gtk/gtkhpaned.c
+++ b/gtk/gtkhpaned.c
@@ -35,26 +35,28 @@ static void gtk_hpaned_size_allocate (GtkWidget *widget,
static gpointer parent_class;
-GtkType
+GType
gtk_hpaned_get_type (void)
{
- static GtkType hpaned_type = 0;
+ static GType hpaned_type = 0;
if (!hpaned_type)
{
- static const GtkTypeInfo hpaned_info =
+ static const GTypeInfo hpaned_info =
{
- "GtkHPaned",
- sizeof (GtkHPaned),
sizeof (GtkHPanedClass),
- (GtkClassInitFunc) gtk_hpaned_class_init,
- (GtkObjectInitFunc) gtk_hpaned_init,
- /* reserved_1 */ NULL,
- /* reserved_2 */ NULL,
- (GtkClassInitFunc) NULL,
+ NULL, /* base_init */
+ NULL, /* base_finalize */
+ (GClassInitFunc) gtk_hpaned_class_init,
+ NULL, /* class_finalize */
+ NULL, /* class_data */
+ sizeof (GtkHPaned),
+ 0, /* n_preallocs */
+ (GInstanceInitFunc) gtk_hpaned_init,
};
- hpaned_type = gtk_type_unique (GTK_TYPE_PANED, &hpaned_info);
+ hpaned_type = g_type_register_static (GTK_TYPE_PANED, "GtkHPaned",
+ &hpaned_info, 0);
}
return hpaned_type;
@@ -65,7 +67,7 @@ gtk_hpaned_class_init (GtkHPanedClass *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_hpaned_new (void)
{
GtkHPaned *hpaned;
- hpaned = gtk_type_new (GTK_TYPE_HPANED);
+ hpaned = g_object_new (GTK_TYPE_HPANED, NULL);
return GTK_WIDGET (hpaned);
}