summaryrefslogtreecommitdiff
path: root/gtk/gtkprintoperation.c
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2009-05-17 18:11:46 +0200
committerCarlos Garcia Campos <carlosgc@gnome.org>2009-05-18 09:43:13 +0200
commit9b7fa7a90482581bc8cba2eb975c8251b6acadff (patch)
tree6be614bf8e3da7c702b3605ce567de27abebcfae /gtk/gtkprintoperation.c
parent122e0b40ba7997a6ba43cfc115ef64332d594d3f (diff)
downloadgtk+-9b7fa7a90482581bc8cba2eb975c8251b6acadff.tar.gz
Use nr_of_pages_to_print instead of nr_of_pages when updating printing progress
Fixes bgo#582950.
Diffstat (limited to 'gtk/gtkprintoperation.c')
-rw-r--r--gtk/gtkprintoperation.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkprintoperation.c b/gtk/gtkprintoperation.c
index bc0a5e519d..4c9b9be20e 100644
--- a/gtk/gtkprintoperation.c
+++ b/gtk/gtkprintoperation.c
@@ -2115,8 +2115,8 @@ update_progress (PrintPagesData *data)
{
if (priv->status == GTK_PRINT_STATUS_PREPARING)
{
- if (priv->nr_of_pages > 0)
- text = g_strdup_printf (_("Preparing %d"), priv->nr_of_pages);
+ if (priv->nr_of_pages_to_print > 0)
+ text = g_strdup_printf (_("Preparing %d"), priv->nr_of_pages_to_print);
else
text = g_strdup (_("Preparing"));
}