summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-05-26 19:38:39 +0000
committerMatthias Clasen <mclasen@redhat.com>2019-05-26 19:38:39 +0000
commit8438510034fb734b25c0913d1df6e36b3fa6e1dd (patch)
tree8b614c406c2e7cfeadd3319945474d9f6be9bca4
parentfb334b1b15b3ec67fc5da33f164aa8f91add177e (diff)
downloadgtk+-8438510034fb734b25c0913d1df6e36b3fa6e1dd.tar.gz
page setup dialog: Make final
No subclassing needed.
-rw-r--r--gtk/gtkpagesetupunixdialog.c14
-rw-r--r--gtk/gtkpagesetupunixdialog.h30
2 files changed, 15 insertions, 29 deletions
diff --git a/gtk/gtkpagesetupunixdialog.c b/gtk/gtkpagesetupunixdialog.c
index 5549fe71c4..61315100b7 100644
--- a/gtk/gtkpagesetupunixdialog.c
+++ b/gtk/gtkpagesetupunixdialog.c
@@ -60,6 +60,20 @@
* Printing support was added in GTK+ 2.10.
*/
+typedef struct _GtkPageSetupUnixDialogClass GtkPageSetupUnixDialogClass;
+typedef struct _GtkPageSetupUnixDialogPrivate GtkPageSetupUnixDialogPrivate;
+
+struct _GtkPageSetupUnixDialog
+{
+ GtkDialog parent_instance;
+
+ GtkPageSetupUnixDialogPrivate *priv;
+};
+
+struct _GtkPageSetupUnixDialogClass
+{
+ GtkDialogClass parent_class;
+};
struct _GtkPageSetupUnixDialogPrivate
{
diff --git a/gtk/gtkpagesetupunixdialog.h b/gtk/gtkpagesetupunixdialog.h
index 1bf4c7c41a..06cee9dc32 100644
--- a/gtk/gtkpagesetupunixdialog.h
+++ b/gtk/gtkpagesetupunixdialog.h
@@ -28,39 +28,11 @@ G_BEGIN_DECLS
#define GTK_TYPE_PAGE_SETUP_UNIX_DIALOG (gtk_page_setup_unix_dialog_get_type ())
#define GTK_PAGE_SETUP_UNIX_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PAGE_SETUP_UNIX_DIALOG, GtkPageSetupUnixDialog))
-#define GTK_PAGE_SETUP_UNIX_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_PAGE_SETUP_UNIX_DIALOG, GtkPageSetupUnixDialogClass))
#define GTK_IS_PAGE_SETUP_UNIX_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PAGE_SETUP_UNIX_DIALOG))
-#define GTK_IS_PAGE_SETUP_UNIX_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PAGE_SETUP_UNIX_DIALOG))
-#define GTK_PAGE_SETUP_UNIX_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PAGE_SETUP_UNIX_DIALOG, GtkPageSetupUnixDialogClass))
-typedef struct _GtkPageSetupUnixDialog GtkPageSetupUnixDialog;
-typedef struct _GtkPageSetupUnixDialogClass GtkPageSetupUnixDialogClass;
-typedef struct _GtkPageSetupUnixDialogPrivate GtkPageSetupUnixDialogPrivate;
+typedef struct _GtkPageSetupUnixDialog GtkPageSetupUnixDialog;
-struct _GtkPageSetupUnixDialog
-{
- GtkDialog parent_instance;
-
- GtkPageSetupUnixDialogPrivate *priv;
-};
-
-/**
- * GtkPageSetupUnixDialogClass:
- * @parent_class: The parent class.
- */
-struct _GtkPageSetupUnixDialogClass
-{
- GtkDialogClass 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
GType gtk_page_setup_unix_dialog_get_type (void) G_GNUC_CONST;