GType gnc_header_get_type (void) { static GType gnc_header_type = 0; if (!gnc_header_type) { static const GTypeInfo gnc_header_info = { sizeof (GncHeaderClass), NULL, NULL, (GClassInitFunc) gnc_header_class_init, NULL, NULL, sizeof (GncHeader), 0, (GInstanceInitFunc) gnc_header_init }; gnc_header_type = g_type_register_static (gnome_canvas_item_get_type (), "GncHeader", &gnc_header_info, 0); } return gnc_header_type; }
GType gnucash_item_cursor_get_type (void) { static GType gnucash_item_cursor_type = 0; if (!gnucash_item_cursor_type) { static const GTypeInfo gnucash_item_cursor_info = { sizeof (GnucashItemCursorClass), NULL, /* base_init */ NULL, /* base_finalize */ (GClassInitFunc) gnucash_item_cursor_class_init, NULL, /* class_finalize */ NULL, /* class_data */ sizeof (GnucashItemCursor), 0, /* n_preallocs */ (GInstanceInitFunc) gnucash_item_cursor_init }; gnucash_item_cursor_type = g_type_register_static (gnome_canvas_item_get_type (), "GnucashItemCursor", &gnucash_item_cursor_info, 0); } return gnucash_item_cursor_type; }
/** * gnome_canvas_pixbuf_get_type: * * Registers the #GnomeCanvasPixbuf class if necessary, and returns the type ID * associated to it. * * Return value: The type ID of the #GnomeCanvasPixbuf class. **/ GtkType gnome_canvas_pixbuf_get_type (void) { static GtkType canvas_pixbuf_type = 0; if (!canvas_pixbuf_type) { static const GtkTypeInfo canvas_pixbuf_info = { "GnomeCanvasPixbuf", sizeof (GnomeCanvasPixbuf), sizeof (GnomeCanvasPixbufClass), (GtkClassInitFunc) gnome_canvas_pixbuf_class_init, (GtkObjectInitFunc) gnome_canvas_pixbuf_init, NULL, /* reserved_1 */ NULL, /* reserved_2 */ (GtkClassInitFunc) NULL }; canvas_pixbuf_type = gtk_type_unique (gnome_canvas_item_get_type (), &canvas_pixbuf_info); } return canvas_pixbuf_type; }
} return canvas_pixbuf_type; } /* Class initialization function for the pixbuf canvas item */ static void gnome_canvas_pixbuf_class_init (GnomeCanvasPixbufClass *class) { GtkObjectClass *object_class; GnomeCanvasItemClass *item_class; object_class = (GtkObjectClass *) class; item_class = (GnomeCanvasItemClass *) class; parent_class = gtk_type_class (gnome_canvas_item_get_type ()); gtk_object_add_arg_type ("GnomeCanvasPixbuf::pixbuf", GTK_TYPE_POINTER, GTK_ARG_READWRITE, ARG_PIXBUF); gtk_object_add_arg_type ("GnomeCanvasPixbuf::width", GTK_TYPE_DOUBLE, GTK_ARG_READWRITE, ARG_WIDTH); gtk_object_add_arg_type ("GnomeCanvasPixbuf::width_set", GTK_TYPE_BOOL, GTK_ARG_READWRITE, ARG_WIDTH_SET); gtk_object_add_arg_type ("GnomeCanvasPixbuf::width_in_pixels", GTK_TYPE_BOOL, GTK_ARG_READWRITE, ARG_WIDTH_IN_PIXELS); gtk_object_add_arg_type ("GnomeCanvasPixbuf::height", GTK_TYPE_DOUBLE, GTK_ARG_READWRITE, ARG_HEIGHT); gtk_object_add_arg_type ("GnomeCanvasPixbuf::height_set", GTK_TYPE_BOOL, GTK_ARG_READWRITE, ARG_HEIGHT_SET); gtk_object_add_arg_type ("GnomeCanvasPixbuf::height_in_pixels", GTK_TYPE_BOOL, GTK_ARG_READWRITE, ARG_HEIGHT_IN_PIXELS);