mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-13 05:50:10 +00:00
message dialog: Make not subclassable
Part of being more explicit about what we allow to be subclassed and what not.
This commit is contained in:
parent
bd6c4a0dec
commit
2c9a1f8b6c
@ -106,6 +106,11 @@ typedef struct
|
||||
guint message_type : 3;
|
||||
} GtkMessageDialogPrivate;
|
||||
|
||||
struct _GtkMessageDialogClass
|
||||
{
|
||||
GtkDialogClass parent_class;
|
||||
};
|
||||
|
||||
static void gtk_message_dialog_constructed (GObject *object);
|
||||
static void gtk_message_dialog_set_property (GObject *object,
|
||||
guint prop_id,
|
||||
|
@ -37,10 +37,7 @@ G_BEGIN_DECLS
|
||||
|
||||
#define GTK_TYPE_MESSAGE_DIALOG (gtk_message_dialog_get_type ())
|
||||
#define GTK_MESSAGE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_MESSAGE_DIALOG, GtkMessageDialog))
|
||||
#define GTK_MESSAGE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_MESSAGE_DIALOG, GtkMessageDialogClass))
|
||||
#define GTK_IS_MESSAGE_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_MESSAGE_DIALOG))
|
||||
#define GTK_IS_MESSAGE_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_MESSAGE_DIALOG))
|
||||
#define GTK_MESSAGE_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_MESSAGE_DIALOG, GtkMessageDialogClass))
|
||||
|
||||
typedef struct _GtkMessageDialog GtkMessageDialog;
|
||||
typedef struct _GtkMessageDialogClass GtkMessageDialogClass;
|
||||
@ -50,17 +47,6 @@ struct _GtkMessageDialog
|
||||
GtkDialog parent_instance;
|
||||
};
|
||||
|
||||
struct _GtkMessageDialogClass
|
||||
{
|
||||
GtkDialogClass parent_class;
|
||||
|
||||
/* Padding for future expansion */
|
||||
void (*_gtk_reserved1) (void);
|
||||
void (*_gtk_reserved2) (void);
|
||||
void (*_gtk_reserved3) (void);
|
||||
void (*_gtk_reserved4) (void);
|
||||
};
|
||||
|
||||
/**
|
||||
* GtkButtonsType:
|
||||
* @GTK_BUTTONS_NONE: no buttons at all
|
||||
|
Loading…
Reference in New Issue
Block a user