summaryrefslogtreecommitdiff
path: root/gtk/gtkprinter.h
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2018-04-12 11:31:37 +0200
committerMarek Kasik <mkasik@redhat.com>2018-04-26 14:19:55 +0200
commitb0bb7f3da4b174edc6e3e080849bf1ab950c3818 (patch)
tree3a17077fe948cd0fbff883341a3e7c23d12f944a /gtk/gtkprinter.h
parent9774b9fabd0eb6a07c50ef77e2045c6ae8d19837 (diff)
downloadgtk+-b0bb7f3da4b174edc6e3e080849bf1ab950c3818.tar.gz
Add gtk_printer_get_hard_margins_for_paper_size
to retreive paper size specific hard margins and use this to set the hard margins in the print context. (modified by Marek Kasik <mkasik@redhat.com>) https://bugzilla.gnome.org/show_bug.cgi?id=686109
Diffstat (limited to 'gtk/gtkprinter.h')
-rw-r--r--gtk/gtkprinter.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gtk/gtkprinter.h b/gtk/gtkprinter.h
index bc02e93c0b..a3e3eb54a3 100644
--- a/gtk/gtkprinter.h
+++ b/gtk/gtkprinter.h
@@ -164,6 +164,12 @@ gboolean gtk_printer_get_hard_margins (GtkPrinter *pr
gdouble *bottom,
gdouble *left,
gdouble *right);
+gboolean gtk_printer_get_hard_margins_for_paper_size (GtkPrinter *printer,
+ GtkPaperSize *paper_size,
+ gdouble *top,
+ gdouble *bottom,
+ gdouble *left,
+ gdouble *right);
/**
* GtkPrinterFunc: