]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkvbox.c
Include "config.h" instead of <config.h> Command used: find -name
[~andy/gtk] / gtk / gtkvbox.c
index f10890bdd199d80fcbd31f1599dad4da452b6f30..57edf83fa4aad492e6b7eb8b7bc13b75781be8d9 100644 (file)
  * GTK+ at ftp://ftp.gtk.org/pub/gtk/. 
  */
 
-#include <config.h>
+#include "config.h"
 #include "gtkvbox.h"
 #include "gtkintl.h"
 #include "gtkalias.h"
 
 
-static void gtk_vbox_class_init    (GtkVBoxClass   *klass);
-static void gtk_vbox_init          (GtkVBox        *box);
 static void gtk_vbox_size_request  (GtkWidget      *widget,
                                    GtkRequisition *requisition);
 static void gtk_vbox_size_allocate (GtkWidget      *widget,
                                    GtkAllocation  *allocation);
 
-
-GType
-gtk_vbox_get_type (void)
-{
-  static GType vbox_type = 0;
-
-  if (!vbox_type)
-    {
-      static const GTypeInfo vbox_info =
-      {
-       sizeof (GtkVBoxClass),
-       NULL,           /* base_init */
-       NULL,           /* base_finalize */
-       (GClassInitFunc) gtk_vbox_class_init,
-       NULL,           /* class_finalize */
-       NULL,           /* class_data */
-       sizeof (GtkVBox),
-       0,              /* n_preallocs */
-       (GInstanceInitFunc) gtk_vbox_init,
-      };
-
-      vbox_type = g_type_register_static (GTK_TYPE_BOX, I_("GtkVBox"),
-                                         &vbox_info, 0);
-    }
-
-  return vbox_type;
-}
+G_DEFINE_TYPE (GtkVBox, gtk_vbox, GTK_TYPE_BOX)
 
 static void
 gtk_vbox_class_init (GtkVBoxClass *class)