mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-02 08:50:28 +00:00
listitem: Use GDK_DECLARE_INTERNAL_TYPE
This commit is contained in:
parent
60921db76f
commit
3048100617
@ -27,18 +27,9 @@
|
|||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#define GTK_TYPE_LIST_ITEM (gtk_list_item_get_type ())
|
#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;
|
|
||||||
|
|
||||||
GDK_AVAILABLE_IN_ALL
|
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
|
GDK_AVAILABLE_IN_ALL
|
||||||
gpointer gtk_list_item_get_item (GtkListItem *self);
|
gpointer gtk_list_item_get_item (GtkListItem *self);
|
||||||
@ -63,7 +54,5 @@ void gtk_list_item_set_child (GtkListItem
|
|||||||
GDK_AVAILABLE_IN_ALL
|
GDK_AVAILABLE_IN_ALL
|
||||||
GtkWidget * gtk_list_item_get_child (GtkListItem *self);
|
GtkWidget * gtk_list_item_get_child (GtkListItem *self);
|
||||||
|
|
||||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GtkListItem, g_object_unref)
|
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user