diff options
author | Matthias Clasen <mclasen@redhat.com> | 2007-04-30 04:45:33 +0000 |
---|---|---|
committer | Matthias Clasen <matthiasc@src.gnome.org> | 2007-04-30 04:45:33 +0000 |
commit | a788ef97a4d51334de280075ed1dedcbc2d74e0f (patch) | |
tree | 5715f14df3d65184678001d01a31e715829f3e6f /tests | |
parent | 7f95ef5ef311fd61cf6c708bcdb81c0dee6c4fe1 (diff) | |
download | gtk+-a788ef97a4d51334de280075ed1dedcbc2d74e0f.tar.gz |
Fix some issues with reference handling in the printing code. (#429902,
2007-04-29 Matthias Clasen <mclasen@redhat.com>
Fix some issues with reference handling in the printing
code. (#429902, Mathias Hasselmann)
* gtk/gtkprintoperation.c (gtk_print_operation_finalize):
Unref the print context, if we have one.
(gtk_print_operation_done): Add a default ::done handler
that unrefs the print context.
(preview_ready): Take a reference on the print operation
preview here.
(print_pages_idle): ...not here,
(preview_print_idle_done): ...and release it here.
* tests/print-editor.c (preview_cb): Take a reference
on the print operation here.
svn path=/trunk/; revision=17722
Diffstat (limited to 'tests')
-rw-r--r-- | tests/print-editor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/print-editor.c b/tests/print-editor.c index 8e11e4bbb7..9b47ce8d55 100644 --- a/tests/print-editor.c +++ b/tests/print-editor.c @@ -578,7 +578,7 @@ preview_cb (GtkPrintOperation *op, gtk_print_context_set_cairo_context (context, cr, 72, 72); cairo_destroy (cr); - pop->op = op; + pop->op = g_object_ref (op); pop->preview = preview; pop->spin = page; pop->area = da; |