viewport: Make final

No need to derive from it.
This commit is contained in:
Matthias Clasen 2019-05-26 15:16:00 -04:00
parent 848f658b32
commit 8de9f41b5d
2 changed files with 13 additions and 24 deletions

View File

@ -63,6 +63,14 @@
* GtkViewport has a single CSS node with name viewport. * GtkViewport has a single CSS node with name viewport.
*/ */
typedef struct _GtkViewportPrivate GtkViewportPrivate;
typedef struct _GtkViewportClass GtkViewportClass;
struct _GtkViewport
{
GtkBin parent_instance;
};
struct _GtkViewportPrivate struct _GtkViewportPrivate
{ {
GtkAdjustment *hadjustment; GtkAdjustment *hadjustment;
@ -75,6 +83,11 @@ struct _GtkViewportPrivate
guint vscroll_policy : 1; guint vscroll_policy : 1;
}; };
struct _GtkViewportClass
{
GtkBinClass parent_class;
};
enum { enum {
PROP_0, PROP_0,
PROP_HADJUSTMENT, PROP_HADJUSTMENT,

View File

@ -45,30 +45,6 @@ G_BEGIN_DECLS
typedef struct _GtkViewport GtkViewport; typedef struct _GtkViewport GtkViewport;
typedef struct _GtkViewportPrivate GtkViewportPrivate;
typedef struct _GtkViewportClass GtkViewportClass;
struct _GtkViewport
{
GtkBin parent_instance;
};
/**
* GtkViewportClass:
* @parent_class: The parent class.
*/
struct _GtkViewportClass
{
GtkBinClass parent_class;
/*< private >*/
/* 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