summaryrefslogtreecommitdiff
path: root/gtk/gtkhscrollbar.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/gtkhscrollbar.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/gtkhscrollbar.c')
-rw-r--r--gtk/gtkhscrollbar.c32
1 files changed, 17 insertions, 15 deletions
diff --git a/gtk/gtkhscrollbar.c b/gtk/gtkhscrollbar.c
index 0894187dec..3b3c2af449 100644
--- a/gtk/gtkhscrollbar.c
+++ b/gtk/gtkhscrollbar.c
@@ -26,33 +26,35 @@
*/
#include "gtkhscrollbar.h"
-#include "gtksignal.h"
#include "gdk/gdkkeysyms.h"
#include "gtkintl.h"
static void gtk_hscrollbar_class_init (GtkHScrollbarClass *klass);
static void gtk_hscrollbar_init (GtkHScrollbar *hscrollbar);
-GtkType
+GType
gtk_hscrollbar_get_type (void)
{
- static GtkType hscrollbar_type = 0;
+ static GType hscrollbar_type = 0;
if (!hscrollbar_type)
{
- static const GtkTypeInfo hscrollbar_info =
+ static const GTypeInfo hscrollbar_info =
{
- "GtkHScrollbar",
- sizeof (GtkHScrollbar),
sizeof (GtkHScrollbarClass),
- (GtkClassInitFunc) gtk_hscrollbar_class_init,
- (GtkObjectInitFunc) gtk_hscrollbar_init,
- /* reserved_1 */ NULL,
- /* reserved_2 */ NULL,
- (GtkClassInitFunc) NULL,
+ NULL, /* base_init */
+ NULL, /* base_finalize */
+ (GClassInitFunc) gtk_hscrollbar_class_init,
+ NULL, /* class_finalize */
+ NULL, /* class_data */
+ sizeof (GtkHScrollbar),
+ 0, /* n_preallocs */
+ (GInstanceInitFunc) gtk_hscrollbar_init,
};
- hscrollbar_type = gtk_type_unique (GTK_TYPE_SCROLLBAR, &hscrollbar_info);
+ hscrollbar_type =
+ g_type_register_static (GTK_TYPE_SCROLLBAR, "GtkHScrollbar",
+ &hscrollbar_info, 0);
}
return hscrollbar_type;
@@ -79,9 +81,9 @@ gtk_hscrollbar_new (GtkAdjustment *adjustment)
{
GtkWidget *hscrollbar;
- hscrollbar = gtk_widget_new (GTK_TYPE_HSCROLLBAR,
- "adjustment", adjustment,
- NULL);
+ hscrollbar = g_object_new (GTK_TYPE_HSCROLLBAR,
+ "adjustment", adjustment,
+ NULL);
return hscrollbar;
}