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/gtkvscrollbar.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/gtkvscrollbar.c')
-rw-r--r-- | gtk/gtkvscrollbar.c | 32 |
1 files changed, 17 insertions, 15 deletions
diff --git a/gtk/gtkvscrollbar.c b/gtk/gtkvscrollbar.c index 795255b5eb..e10636e9d5 100644 --- a/gtk/gtkvscrollbar.c +++ b/gtk/gtkvscrollbar.c @@ -26,33 +26,35 @@ */ #include "gtkvscrollbar.h" -#include "gtksignal.h" #include "gdk/gdkkeysyms.h" #include "gtkintl.h" static void gtk_vscrollbar_class_init (GtkVScrollbarClass *klass); static void gtk_vscrollbar_init (GtkVScrollbar *vscrollbar); -GtkType +GType gtk_vscrollbar_get_type (void) { - static GtkType vscrollbar_type = 0; + static GType vscrollbar_type = 0; if (!vscrollbar_type) { - static const GtkTypeInfo vscrollbar_info = + static const GTypeInfo vscrollbar_info = { - "GtkVScrollbar", - sizeof (GtkVScrollbar), sizeof (GtkVScrollbarClass), - (GtkClassInitFunc) gtk_vscrollbar_class_init, - (GtkObjectInitFunc) gtk_vscrollbar_init, - /* reserved_1 */ NULL, - /* reserved_2 */ NULL, - (GtkClassInitFunc) NULL, + NULL, /* base_init */ + NULL, /* base_finalize */ + (GClassInitFunc) gtk_vscrollbar_class_init, + NULL, /* class_finalize */ + NULL, /* class_data */ + sizeof (GtkVScrollbar), + 0, /* n_preallocs */ + (GInstanceInitFunc) gtk_vscrollbar_init, }; - vscrollbar_type = gtk_type_unique (GTK_TYPE_SCROLLBAR, &vscrollbar_info); + vscrollbar_type = + g_type_register_static (GTK_TYPE_SCROLLBAR, "GtkVScrollbar", + &vscrollbar_info, 0); } return vscrollbar_type; @@ -79,9 +81,9 @@ gtk_vscrollbar_new (GtkAdjustment *adjustment) { GtkWidget *vscrollbar; - vscrollbar = gtk_widget_new (GTK_TYPE_VSCROLLBAR, - "adjustment", adjustment, - NULL); + vscrollbar = g_object_new (GTK_TYPE_VSCROLLBAR, + "adjustment", adjustment, + NULL); return vscrollbar; } |