diff options
Diffstat (limited to 'gtk/gtkprintjob.c')
-rw-r--r-- | gtk/gtkprintjob.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/gtk/gtkprintjob.c b/gtk/gtkprintjob.c index 439b668626..918ece56a8 100644 --- a/gtk/gtkprintjob.c +++ b/gtk/gtkprintjob.c @@ -86,9 +86,6 @@ struct _GtkPrintJobPrivate guint reverse : 1; }; -#define GTK_PRINT_JOB_GET_PRIVATE(o) \ - (G_TYPE_INSTANCE_GET_PRIVATE ((o), GTK_TYPE_PRINT_JOB, GtkPrintJobPrivate)) - static void gtk_print_job_finalize (GObject *object); static void gtk_print_job_set_property (GObject *object, guint prop_id, @@ -118,7 +115,7 @@ enum { static guint signals[LAST_SIGNAL] = { 0 }; -G_DEFINE_TYPE (GtkPrintJob, gtk_print_job, G_TYPE_OBJECT) +G_DEFINE_TYPE_WITH_PRIVATE (GtkPrintJob, gtk_print_job, G_TYPE_OBJECT) static void gtk_print_job_class_init (GtkPrintJobClass *class) @@ -131,8 +128,6 @@ gtk_print_job_class_init (GtkPrintJobClass *class) object_class->set_property = gtk_print_job_set_property; object_class->get_property = gtk_print_job_get_property; - g_type_class_add_private (class, sizeof (GtkPrintJobPrivate)); - g_object_class_install_property (object_class, PROP_TITLE, g_param_spec_string ("title", @@ -204,7 +199,7 @@ gtk_print_job_init (GtkPrintJob *job) { GtkPrintJobPrivate *priv; - priv = job->priv = GTK_PRINT_JOB_GET_PRIVATE (job); + priv = job->priv = gtk_print_job_get_instance_private (job); priv->spool_io = NULL; |