builder: Make the struct private

We don't want anyone to subclass it - if we want to allow bindings to
extend GtkBuilder, we will be using delegate objects/functions for it.
This commit is contained in:
Benjamin Otte 2019-11-22 08:29:32 +01:00
parent 245fdc8b38
commit 4fbb0d7ce4
2 changed files with 10 additions and 15 deletions

View File

@ -241,7 +241,6 @@
#include "gtkicontheme.h"
#include "gtktestutils.h"
static void gtk_builder_finalize (GObject *object);
static void gtk_builder_set_property (GObject *object,
guint prop_id,
@ -260,6 +259,16 @@ enum {
static GParamSpec *builder_props[LAST_PROP];
struct _GtkBuilder
{
GObject parent_instance;
};
struct _GtkBuilderClass
{
GObjectClass parent_class;
};
typedef struct
{
gchar *domain;

View File

@ -93,20 +93,6 @@ typedef enum
GDK_AVAILABLE_IN_ALL
GQuark gtk_builder_error_quark (void);
struct _GtkBuilder
{
GObject parent_instance;
};
struct _GtkBuilderClass
{
GObjectClass parent_class;
/*< private >*/
gpointer padding[8];
};
GDK_AVAILABLE_IN_ALL
GType gtk_builder_get_type (void) G_GNUC_CONST;
GDK_AVAILABLE_IN_ALL