summaryrefslogtreecommitdiff
path: root/gtk/gtkseparatormenuitem.c
diff options
context:
space:
mode:
authorMatthias Clasen <maclas@gmx.de>2004-02-02 21:06:49 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-02-02 21:06:49 +0000
commit6eb2fe94cb939f18322ef32a9b2f12414fa699d6 (patch)
tree05c4a5c0497b22bf7dfaf9129fc8cc72b69daccd /gtk/gtkseparatormenuitem.c
parentd9d3cf5eda5646c0f9eb6326fc22468e735184fb (diff)
downloadgdk-pixbuf-6eb2fe94cb939f18322ef32a9b2f12414fa699d6.tar.gz
The latest in menu separation technology.
Mon Feb 2 22:05:36 2004 Matthias Clasen <maclas@gmx.de> * gtk/gtkseparatormenuitem.c (gtk_separator_menu_item_init): The latest in menu separation technology.
Diffstat (limited to 'gtk/gtkseparatormenuitem.c')
-rw-r--r--gtk/gtkseparatormenuitem.c35
1 files changed, 6 insertions, 29 deletions
diff --git a/gtk/gtkseparatormenuitem.c b/gtk/gtkseparatormenuitem.c
index 3d8d57074..e160cc01d 100644
--- a/gtk/gtkseparatormenuitem.c
+++ b/gtk/gtkseparatormenuitem.c
@@ -26,35 +26,7 @@
#include "gtkseparatormenuitem.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,6 +34,11 @@ 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)
{