summaryrefslogtreecommitdiff
path: root/gtk/gtkprintoperation-unix.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-12-18 17:45:31 -0500
committerMatthias Clasen <mclasen@redhat.com>2010-12-18 17:45:31 -0500
commit81051253691f340bff77241e3006ce7481b54611 (patch)
treefe25030545a5180e3a67dea5068c8871ab0822d0 /gtk/gtkprintoperation-unix.c
parent5863382e114e0851ea6ebc77bbbfd5c7236f6b5e (diff)
downloadgtk+-81051253691f340bff77241e3006ce7481b54611.tar.gz
Remove sealed members from GtkPrintJob
Also add accessors for these members, and use them in print backends.
Diffstat (limited to 'gtk/gtkprintoperation-unix.c')
-rw-r--r--gtk/gtkprintoperation-unix.c22
1 files changed, 10 insertions, 12 deletions
diff --git a/gtk/gtkprintoperation-unix.c b/gtk/gtkprintoperation-unix.c
index d43db01e51..5eb770ec3c 100644
--- a/gtk/gtkprintoperation-unix.c
+++ b/gtk/gtkprintoperation-unix.c
@@ -577,18 +577,16 @@ finish_print (PrintResponseData *rdata,
g_signal_connect (job, "status-changed",
G_CALLBACK (job_status_changed_cb), op);
- priv->print_pages = job->print_pages;
- priv->page_ranges = job->page_ranges;
- priv->num_page_ranges = job->num_page_ranges;
-
- priv->manual_num_copies = job->num_copies;
- priv->manual_collation = job->collate;
- priv->manual_reverse = job->reverse;
- priv->manual_page_set = job->page_set;
- priv->manual_scale = job->scale;
- priv->manual_orientation = job->rotate_to_orientation;
- priv->manual_number_up = job->number_up;
- priv->manual_number_up_layout = job->number_up_layout;
+ priv->print_pages = gtk_print_job_get_pages (job);
+ priv->page_ranges = gtk_print_job_get_page_ranges (job, &priv->num_page_ranges);
+ priv->manual_num_copies = gtk_print_job_get_num_copies (job);
+ priv->manual_collation = gtk_print_job_get_collate (job);
+ priv->manual_reverse = gtk_print_job_get_reverse (job);
+ priv->manual_page_set = gtk_print_job_get_page_set (job);
+ priv->manual_scale = gtk_print_job_get_scale (job);
+ priv->manual_orientation = gtk_print_job_get_rotate (job);
+ priv->manual_number_up = gtk_print_job_get_n_up (job);
+ priv->manual_number_up_layout = gtk_print_job_get_n_up_layout (job);
}
}
out: