From 2c9a1f8b6c3bea468410443487455dd02a3f7b85 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 19 May 2019 16:49:45 +0000 Subject: [PATCH] message dialog: Make not subclassable Part of being more explicit about what we allow to be subclassed and what not. --- gtk/gtkmessagedialog.c | 5 +++++ gtk/gtkmessagedialog.h | 14 -------------- 2 files changed, 5 insertions(+), 14 deletions(-) diff --git a/gtk/gtkmessagedialog.c b/gtk/gtkmessagedialog.c index 5d9923900c..52d40a784c 100644 --- a/gtk/gtkmessagedialog.c +++ b/gtk/gtkmessagedialog.c @@ -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, diff --git a/gtk/gtkmessagedialog.h b/gtk/gtkmessagedialog.h index d39132faa3..ddfca46465 100644 --- a/gtk/gtkmessagedialog.h +++ b/gtk/gtkmessagedialog.h @@ -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