diff options
Diffstat (limited to 'gtk/gtkwidget.c')
-rw-r--r-- | gtk/gtkwidget.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c index a859bf2f3b..62ad959f3b 100644 --- a/gtk/gtkwidget.c +++ b/gtk/gtkwidget.c @@ -10291,18 +10291,9 @@ gtk_requisition_free (GtkRequisition *requisition) g_slice_free (GtkRequisition, requisition); } -GType -gtk_requisition_get_type (void) -{ - static GType our_type = 0; - - if (our_type == 0) - our_type = g_boxed_type_register_static (I_("GtkRequisition"), - (GBoxedCopyFunc) gtk_requisition_copy, - (GBoxedFreeFunc) gtk_requisition_free); - - return our_type; -} +G_DEFINE_BOXED_TYPE (GtkRequisition, gtk_requisition, + gtk_requisition_copy, + gtk_requisition_free) /** * gtk_widget_get_accessible: |