Commit c0b81042 authored by Javier Jardón's avatar Javier Jardón

gtk/gtkcellsizerequest.c: Use G_DEFINE_INTERFACE macro

parent 24fedecc
......@@ -29,23 +29,17 @@
#define DEBUG_CELL_SIZE_REQUEST 0
GType
gtk_cell_size_request_get_type (void)
{
static GType cell_size_request_type = 0;
if (G_UNLIKELY(!cell_size_request_type))
{
cell_size_request_type =
g_type_register_static_simple (G_TYPE_INTERFACE, I_("GtkCellSizeRequest"),
sizeof (GtkCellSizeRequestIface),
NULL, 0, NULL, 0);
typedef GtkCellSizeRequestIface GtkCellSizeRequestInterface;
G_DEFINE_INTERFACE (GtkCellSizeRequest, gtk_cell_size_request, GTK_TYPE_CELL_RENDERER);
g_type_interface_add_prerequisite (cell_size_request_type, GTK_TYPE_CELL_RENDERER);
}
return cell_size_request_type;
static void
gtk_cell_size_request_default_init (GtkCellSizeRequestInterface *iface)
{
}
/**
* gtk_cell_size_request_get_request_mode:
* @cell: a #GtkCellSizeRequest instance
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment