[gtk+] Revert "Set hard margins to 0 when printing n-up on unix	printers"
- From: Christian Persch <chpe src gnome org>
- To: svn-commits-list gnome org
- Cc: 
- Subject: [gtk+] Revert "Set hard margins to 0 when printing n-up on unix	printers"
- Date: Tue,  1 Dec 2009 18:02:39 +0000 (UTC)
commit ab8e5657403cb04631c2b779c67c9c3a144e8cc3
Author: Christian Persch <chpe gnome org>
Date:   Tue Dec 1 19:00:40 2009 +0100
    Revert "Set hard margins to 0 when printing n-up on unix printers"
    
    This reverts commit 215eb8c9f1635551bbfb30dd4e010b6ea3d871b4.
 gtk/gtkprintoperation-unix.c |    8 ++------
 1 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkprintoperation-unix.c b/gtk/gtkprintoperation-unix.c
index 19e5644..5940600 100644
--- a/gtk/gtkprintoperation-unix.c
+++ b/gtk/gtkprintoperation-unix.c
@@ -545,12 +545,8 @@ finish_print (PrintResponseData *rdata,
       gtk_print_operation_set_print_settings (op, settings);
       priv->print_context = _gtk_print_context_new (op);
 
-      if (gtk_print_settings_get_number_up (settings) < 2) {
-	if (gtk_printer_get_hard_margins (printer, &top, &bottom, &left, &right))
-	  _gtk_print_context_set_hard_margins (priv->print_context, top, bottom, left, right);
-      } else {
-	_gtk_print_context_set_hard_margins (priv->print_context, 0, 0, 0, 0);
-      }
+      if (gtk_printer_get_hard_margins (printer, &top, &bottom, &left, &right))
+        _gtk_print_context_set_hard_margins (priv->print_context, top, bottom, left, right);
 
       if (page_setup != NULL &&
           (gtk_print_operation_get_default_page_setup (op) == NULL ||
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]