From 557ff70925753d77aa8704ca6b979161832d4176 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 29 Apr 2007 06:34:12 +0000 Subject: [PATCH] Also check the default handler when deciding whether to emit the paginate 2007-04-29 Matthias Clasen * gtk/gtkprintoperation.c (print_pages_idle): Also check the default handler when deciding whether to emit the paginate signal. (#345345, Yevgen Muntyan) svn path=/trunk/; revision=17698 --- ChangeLog | 6 ++++++ gtk/gtkprintoperation.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index ac54424caf..85c05ff13c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-04-29 Matthias Clasen + + * gtk/gtkprintoperation.c (print_pages_idle): Also check + the default handler when deciding whether to emit the + paginate signal. (#345345, Yevgen Muntyan) + 2007-04-29 Matthias Clasen * gtk/gtkprintoperation.h: Add a new error code diff --git a/gtk/gtkprintoperation.c b/gtk/gtkprintoperation.c index c04abbc431..9d12054ae4 100644 --- a/gtk/gtkprintoperation.c +++ b/gtk/gtkprintoperation.c @@ -2050,7 +2050,8 @@ print_pages_idle (gpointer user_data) goto out; } - if (g_signal_has_handler_pending (data->op, signals[PAGINATE], 0, FALSE)) + if (GTK_PRINT_OPERATION_GET_CLASS (data->op)->paginage != NULL || + g_signal_has_handler_pending (data->op, signals[PAGINATE], 0, FALSE)) { gboolean paginated = FALSE;