[gtk] print dialog: Make final
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] print dialog: Make final
- Date: Sun, 26 May 2019 20:08:42 +0000 (UTC)
commit bb46cc6470dd61f6c8dd6a1ad987d7e7391dd334
Author: Matthias Clasen <mclasen redhat com>
Date: Sun May 26 19:55:04 2019 +0000
print dialog: Make final
Nobody should subclass this.
gtk/gtkprintunixdialog.c | 16 ++++++++++++++++
gtk/gtkprintunixdialog.h | 25 +------------------------
2 files changed, 17 insertions(+), 24 deletions(-)
---
diff --git a/gtk/gtkprintunixdialog.c b/gtk/gtkprintunixdialog.c
index 267b3dbe5a..dd6b14711b 100644
--- a/gtk/gtkprintunixdialog.c
+++ b/gtk/gtkprintunixdialog.c
@@ -261,6 +261,22 @@ enum {
PROP_EMBED_PAGE_SETUP
};
+typedef struct _GtkPrintUnixDialogClass GtkPrintUnixDialogClass;
+typedef struct GtkPrintUnixDialogPrivate GtkPrintUnixDialogPrivate;
+
+struct _GtkPrintUnixDialog
+{
+ GtkDialog parent_instance;
+
+ /*< private >*/
+ GtkPrintUnixDialogPrivate *priv;
+};
+
+struct _GtkPrintUnixDialogClass
+{
+ GtkDialogClass parent_class;
+};
+
struct GtkPrintUnixDialogPrivate
{
GtkWidget *notebook;
diff --git a/gtk/gtkprintunixdialog.h b/gtk/gtkprintunixdialog.h
index 4fd6705689..5addb0dc9b 100644
--- a/gtk/gtkprintunixdialog.h
+++ b/gtk/gtkprintunixdialog.h
@@ -30,34 +30,11 @@ G_BEGIN_DECLS
#define GTK_TYPE_PRINT_UNIX_DIALOG (gtk_print_unix_dialog_get_type ())
#define GTK_PRINT_UNIX_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj),
GTK_TYPE_PRINT_UNIX_DIALOG, GtkPrintUnixDialog))
-#define GTK_PRINT_UNIX_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass),
GTK_TYPE_PRINT_UNIX_DIALOG, GtkPrintUnixDialogClass))
#define GTK_IS_PRINT_UNIX_DIALOG(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj),
GTK_TYPE_PRINT_UNIX_DIALOG))
-#define GTK_IS_PRINT_UNIX_DIALOG_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass),
GTK_TYPE_PRINT_UNIX_DIALOG))
-#define GTK_PRINT_UNIX_DIALOG_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj),
GTK_TYPE_PRINT_UNIX_DIALOG, GtkPrintUnixDialogClass))
-typedef struct _GtkPrintUnixDialog GtkPrintUnixDialog;
-typedef struct _GtkPrintUnixDialogClass GtkPrintUnixDialogClass;
-typedef struct GtkPrintUnixDialogPrivate GtkPrintUnixDialogPrivate;
+typedef struct _GtkPrintUnixDialog GtkPrintUnixDialog;
-struct _GtkPrintUnixDialog
-{
- GtkDialog parent_instance;
-
- /*< private >*/
- GtkPrintUnixDialogPrivate *priv;
-};
-
-struct _GtkPrintUnixDialogClass
-{
- GtkDialogClass parent_class;
-
- /* 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_print_unix_dialog_get_type (void) G_GNUC_CONST;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]