image: Make final

This commit is contained in:
Matthias Clasen 2019-05-26 22:22:40 -04:00
parent 86f81a11d8
commit f47a84f233
2 changed files with 12 additions and 27 deletions

View File

@ -76,6 +76,18 @@
* property. * property.
*/ */
typedef struct _GtkImageClass GtkImageClass;
struct _GtkImage
{
GtkWidget parent_instance;
};
struct _GtkImageClass
{
GtkWidgetClass parent_class;
};
typedef struct typedef struct
{ {

View File

@ -38,14 +38,9 @@ G_BEGIN_DECLS
#define GTK_TYPE_IMAGE (gtk_image_get_type ()) #define GTK_TYPE_IMAGE (gtk_image_get_type ())
#define GTK_IMAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_IMAGE, GtkImage)) #define GTK_IMAGE(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_IMAGE, GtkImage))
#define GTK_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_IMAGE, GtkImageClass))
#define GTK_IS_IMAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_IMAGE)) #define GTK_IS_IMAGE(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_IMAGE))
#define GTK_IS_IMAGE_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_IMAGE))
#define GTK_IMAGE_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_IMAGE, GtkImageClass))
typedef struct _GtkImage GtkImage; typedef struct _GtkImage GtkImage;
typedef struct _GtkImageClass GtkImageClass;
/** /**
* GtkImageType: * GtkImageType:
@ -73,28 +68,6 @@ typedef enum
GTK_IMAGE_PAINTABLE GTK_IMAGE_PAINTABLE
} GtkImageType; } GtkImageType;
/**
* GtkImage:
*
* This struct contain private data only and should be accessed by the functions
* below.
*/
struct _GtkImage
{
GtkWidget parent_instance;
};
struct _GtkImageClass
{
GtkWidgetClass parent_class;
/* Padding for future expansion */
void (*_gtk_reserved1) (void);
void (*_gtk_reserved2) (void);
void (*_gtk_reserved3) (void);
void (*_gtk_reserved4) (void);
};
GDK_AVAILABLE_IN_ALL GDK_AVAILABLE_IN_ALL
GType gtk_image_get_type (void) G_GNUC_CONST; GType gtk_image_get_type (void) G_GNUC_CONST;