From 3048100617d077daa125f40243b1f8ea4906fdbf Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 31 Mar 2023 23:42:15 +0200 Subject: [PATCH] listitem: Use GDK_DECLARE_INTERNAL_TYPE --- gtk/gtklistitem.h | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/gtk/gtklistitem.h b/gtk/gtklistitem.h index f66da44d19..88e5da2f7e 100644 --- a/gtk/gtklistitem.h +++ b/gtk/gtklistitem.h @@ -27,18 +27,9 @@ G_BEGIN_DECLS -#define GTK_TYPE_LIST_ITEM (gtk_list_item_get_type ()) -#define GTK_LIST_ITEM(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GTK_TYPE_LIST_ITEM, GtkListItem)) -#define GTK_LIST_ITEM_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GTK_TYPE_LIST_ITEM, GtkListItemClass)) -#define GTK_IS_LIST_ITEM(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GTK_TYPE_LIST_ITEM)) -#define GTK_IS_LIST_ITEM_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GTK_TYPE_LIST_ITEM)) -#define GTK_LIST_ITEM_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GTK_TYPE_LIST_ITEM, GtkListItemClass)) - -typedef struct _GtkListItem GtkListItem; -typedef struct _GtkListItemClass GtkListItemClass; - +#define GTK_TYPE_LIST_ITEM (gtk_list_item_get_type ()) GDK_AVAILABLE_IN_ALL -GType gtk_list_item_get_type (void) G_GNUC_CONST; +GDK_DECLARE_INTERNAL_TYPE (GtkListItem, gtk_list_item, GTK, LIST_ITEM, GObject) GDK_AVAILABLE_IN_ALL gpointer gtk_list_item_get_item (GtkListItem *self); @@ -63,7 +54,5 @@ void gtk_list_item_set_child (GtkListItem GDK_AVAILABLE_IN_ALL GtkWidget * gtk_list_item_get_child (GtkListItem *self); -G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkListItem, g_object_unref) - G_END_DECLS