[gtk+] Revert "Set unix printer hard margins on print context"



commit 33552c75b1101562b6d7503e56cb3c66063df269
Author: Christian Persch <chpe gnome org>
Date:   Tue Dec 1 19:00:43 2009 +0100

    Revert "Set unix printer hard margins on print context"
    
    This reverts commit 826d800b7420d1030337f46a6a742537a85f13f1.

 gtk/gtkprintoperation-private.h |    5 -----
 gtk/gtkprintoperation-unix.c    |    4 ----
 2 files changed, 0 insertions(+), 9 deletions(-)
---
diff --git a/gtk/gtkprintoperation-private.h b/gtk/gtkprintoperation-private.h
index c1f047c..5e28007 100644
--- a/gtk/gtkprintoperation-private.h
+++ b/gtk/gtkprintoperation-private.h
@@ -140,11 +140,6 @@ void             _gtk_print_context_set_page_setup                  (GtkPrintCon
 								     GtkPageSetup      *page_setup);
 void             _gtk_print_context_translate_into_margin           (GtkPrintContext   *context);
 void             _gtk_print_context_rotate_according_to_orientation (GtkPrintContext   *context);
-void             _gtk_print_context_set_hard_margins                (GtkPrintContext   *context,
-								     gdouble            top,
-								     gdouble            bottom,
-								     gdouble            left,
-								     gdouble            right);
 
 G_END_DECLS
 
diff --git a/gtk/gtkprintoperation-unix.c b/gtk/gtkprintoperation-unix.c
index 5940600..a36eced 100644
--- a/gtk/gtkprintoperation-unix.c
+++ b/gtk/gtkprintoperation-unix.c
@@ -538,16 +538,12 @@ finish_print (PrintResponseData *rdata,
   GtkPrintOperation *op = rdata->op;
   GtkPrintOperationPrivate *priv = op->priv;
   GtkPrintJob *job;
-  gdouble top, bottom, left, right;
   
   if (rdata->do_print)
     {
       gtk_print_operation_set_print_settings (op, settings);
       priv->print_context = _gtk_print_context_new (op);
 
-      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 ||
            page_setup_set))



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]