]> Pileus Git - ~andy/gtk/blobdiff - gtk/gtkseparatormenuitem.c
Display an error when we come to the root.
[~andy/gtk] / gtk / gtkseparatormenuitem.c
index 3d8d570745e2f4e6164056913ad419984e0f30b4..49fe3e7639aa55449e1b146e441e67eb908e3ddd 100644 (file)
  * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
  */
 
+#include <config.h>
 #include "gtkseparatormenuitem.h"
+#include "gtkalias.h"
 
-static void gtk_separator_menu_item_class_init (GtkSeparatorMenuItemClass *class);
-
-GType
-gtk_separator_menu_item_get_type (void)
-{
-  static GType separator_menu_item_type = 0;
-
-  if (!separator_menu_item_type)
-    {
-      static const GTypeInfo separator_menu_item_info =
-      {
-        sizeof (GtkSeparatorMenuItemClass),
-        NULL, /* base_init */
-        NULL, /* base_finalize */
-        (GClassInitFunc) gtk_separator_menu_item_class_init,
-        NULL, /* class_finalize */
-        NULL, /* class_data */
-        sizeof (GtkSeparatorMenuItem),
-        0,    /* n_preallocs */
-        NULL, /* instance_init */
-      };
-
-      separator_menu_item_type =
-       g_type_register_static (GTK_TYPE_MENU_ITEM, "GtkSeparatorMenuItem",
-                               &separator_menu_item_info, 0);
-    }
-
-  return separator_menu_item_type;
-}
+G_DEFINE_TYPE (GtkSeparatorMenuItem, gtk_separator_menu_item, GTK_TYPE_MENU_ITEM)
 
 static void
 gtk_separator_menu_item_class_init (GtkSeparatorMenuItemClass *class)
@@ -62,8 +36,16 @@ gtk_separator_menu_item_class_init (GtkSeparatorMenuItemClass *class)
   GTK_CONTAINER_CLASS (class)->child_type = NULL;
 }
 
+static void 
+gtk_separator_menu_item_init (GtkSeparatorMenuItem *item)
+{
+}
+
 GtkWidget *
 gtk_separator_menu_item_new (void)
 {
   return g_object_new (GTK_TYPE_SEPARATOR_MENU_ITEM, NULL);
 }
+
+#define __GTK_SEPARATOR_MENU_ITEM_C__
+#include "gtkaliasdef.c"