Also check the default handler when deciding whether to emit the paginate

2007-04-29  Matthias Clasen  <mclasen@redhat.com>

        * 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
This commit is contained in:
Matthias Clasen
2007-04-29 06:34:12 +00:00
committed by Matthias Clasen
parent 3c5bd522b3
commit 557ff70925
2 changed files with 8 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
2007-04-29 Matthias Clasen <mclasen@redhat.com>
* 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 <mclasen@redhat.com>
* gtk/gtkprintoperation.h: Add a new error code

View File

@@ -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;