summaryrefslogtreecommitdiff
path: root/gtk/gtkvseparator.c
diff options
context:
space:
mode:
authorManish Singh <yosh@gimp.org>2002-10-04 08:02:14 +0000
committerManish Singh <yosh@src.gnome.org>2002-10-04 08:02:14 +0000
commit85d726f9aa22ff9f6b9487b4f3e380a40f731f4b (patch)
tree4ad154a10bc1c543aacc7a3734e203b9ee73ae59 /gtk/gtkvseparator.c
parent424f913d43262a6a9eeeccddf6a795e38e7ac29a (diff)
downloadgtk+-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/gtkvseparator.c')
-rw-r--r--gtk/gtkvseparator.c27
1 files changed, 15 insertions, 12 deletions
diff --git a/gtk/gtkvseparator.c b/gtk/gtkvseparator.c
index 48c3962f6b..f546e0db85 100644
--- a/gtk/gtkvseparator.c
+++ b/gtk/gtkvseparator.c
@@ -33,26 +33,29 @@ static gint gtk_vseparator_expose (GtkWidget *widget,
GdkEventExpose *event);
-GtkType
+GType
gtk_vseparator_get_type (void)
{
- static GtkType vseparator_type = 0;
+ static GType vseparator_type = 0;
if (!vseparator_type)
{
- static const GtkTypeInfo vseparator_info =
+ static const GTypeInfo vseparator_info =
{
- "GtkVSeparator",
- sizeof (GtkVSeparator),
sizeof (GtkVSeparatorClass),
- (GtkClassInitFunc) gtk_vseparator_class_init,
- (GtkObjectInitFunc) gtk_vseparator_init,
- /* reserved_1 */ NULL,
- /* reserved_2 */ NULL,
- (GtkClassInitFunc) NULL,
+ NULL, /* base_init */
+ NULL, /* base_finalize */
+ (GClassInitFunc) gtk_vseparator_class_init,
+ NULL, /* class_finalize */
+ NULL, /* class_init */
+ sizeof (GtkVSeparator),
+ 0, /* n_preallocs */
+ (GInstanceInitFunc) gtk_vseparator_init,
};
- vseparator_type = gtk_type_unique (GTK_TYPE_SEPARATOR, &vseparator_info);
+ vseparator_type =
+ g_type_register_static (GTK_TYPE_SEPARATOR, "GtkVSeparator",
+ &vseparator_info, 0);
}
return vseparator_type;
@@ -78,7 +81,7 @@ gtk_vseparator_init (GtkVSeparator *vseparator)
GtkWidget*
gtk_vseparator_new (void)
{
- return GTK_WIDGET (gtk_type_new (GTK_TYPE_VSEPARATOR));
+ return g_object_new (GTK_TYPE_VSEPARATOR, NULL);
}