diff options
author | Manish Singh <yosh@gimp.org> | 2002-10-04 08:02:14 +0000 |
---|---|---|
committer | Manish Singh <yosh@src.gnome.org> | 2002-10-04 08:02:14 +0000 |
commit | 85d726f9aa22ff9f6b9487b4f3e380a40f731f4b (patch) | |
tree | 4ad154a10bc1c543aacc7a3734e203b9ee73ae59 /gtk/gtkhseparator.c | |
parent | 424f913d43262a6a9eeeccddf6a795e38e7ac29a (diff) | |
download | gtk+-85d726f9aa22ff9f6b9487b4f3e380a40f731f4b.tar.gz |
Deprecation cleanup
Fri Oct 4 00:57:53 2002 Manish Singh <yosh@gimp.org>
* gtkhscrollbar.[ch] gtkhseparator.[ch] gtkrange.[ch]
gtkscrollbar.[ch] gtkseparator.[ch] gtkseparatormenuitem.h
gtkvscrollbar.[ch] gtkvseparator.[ch]: Deprecation cleanup
Diffstat (limited to 'gtk/gtkhseparator.c')
-rw-r--r-- | gtk/gtkhseparator.c | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/gtk/gtkhseparator.c b/gtk/gtkhseparator.c index 7da54bf5a2..66b5aad453 100644 --- a/gtk/gtkhseparator.c +++ b/gtk/gtkhseparator.c @@ -33,26 +33,29 @@ static gint gtk_hseparator_expose (GtkWidget *widget, GdkEventExpose *event); -GtkType +GType gtk_hseparator_get_type (void) { - static GtkType hseparator_type = 0; + static GType hseparator_type = 0; if (!hseparator_type) { - static const GtkTypeInfo hseparator_info = + static const GTypeInfo hseparator_info = { - "GtkHSeparator", - sizeof (GtkHSeparator), sizeof (GtkHSeparatorClass), - (GtkClassInitFunc) gtk_hseparator_class_init, - (GtkObjectInitFunc) gtk_hseparator_init, - /* reserved_1 */ NULL, - /* reserved_2 */ NULL, - (GtkClassInitFunc) NULL, + NULL, /* base_init */ + NULL, /* base_finalize */ + (GClassInitFunc) gtk_hseparator_class_init, + NULL, /* class_finalize */ + NULL, /* class_init */ + sizeof (GtkHSeparator), + 0, /* n_preallocs */ + (GInstanceInitFunc) gtk_hseparator_init, }; - hseparator_type = gtk_type_unique (GTK_TYPE_SEPARATOR, &hseparator_info); + hseparator_type = + g_type_register_static (GTK_TYPE_SEPARATOR, "GtkHSeparator", + &hseparator_info, 0); } return hseparator_type; @@ -78,7 +81,7 @@ gtk_hseparator_init (GtkHSeparator *hseparator) GtkWidget* gtk_hseparator_new (void) { - return GTK_WIDGET (gtk_type_new (GTK_TYPE_HSEPARATOR)); + return g_object_new (GTK_TYPE_HSEPARATOR, NULL); } |