]> Pileus Git - ~andy/gtk/commitdiff
Use nr_of_pages_to_print instead of nr_of_pages when updating printing progress
authorCarlos Garcia Campos <carlosgc@gnome.org>
Sun, 17 May 2009 16:11:46 +0000 (18:11 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Mon, 18 May 2009 07:43:13 +0000 (09:43 +0200)
Fixes bgo#582950.

gtk/gtkprintoperation.c

index bc0a5e519d79ea9e22a6998132cebfa1d2e238af..4c9b9be20e37090eabe0eb1a1fda67e89c8a7f9c 100644 (file)
@@ -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"));
        }