diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2010-12-29 16:04:49 +1030 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2011-01-03 08:14:34 -0500 |
commit | ebcd0ba233df7ba711dfee8bd6f2939e5f9e72a4 (patch) | |
tree | 5dece800061a01df35a3448f1137a441e779957b /gtk/gtkprinter.c | |
parent | 856cc65f63510233693ff457551136a3f0768bb8 (diff) | |
download | gtk+-ebcd0ba233df7ba711dfee8bd6f2939e5f9e72a4.tar.gz |
Set file GtkPrinter accepts_pdf/ps based on selected format
Diffstat (limited to 'gtk/gtkprinter.c')
-rw-r--r-- | gtk/gtkprinter.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gtk/gtkprinter.c b/gtk/gtkprinter.c index fdb6c801cb..4d5112b038 100644 --- a/gtk/gtkprinter.c +++ b/gtk/gtkprinter.c @@ -795,6 +795,15 @@ gtk_printer_accepts_pdf (GtkPrinter *printer) return printer->priv->accepts_pdf; } +void +gtk_printer_set_accepts_pdf (GtkPrinter *printer, + gboolean val) +{ + g_return_if_fail (GTK_IS_PRINTER (printer)); + + printer->priv->accepts_pdf = val; +} + /** * gtk_printer_accepts_ps: * @printer: a #GtkPrinter @@ -814,6 +823,15 @@ gtk_printer_accepts_ps (GtkPrinter *printer) return printer->priv->accepts_ps; } +void +gtk_printer_set_accepts_ps (GtkPrinter *printer, + gboolean val) +{ + g_return_if_fail (GTK_IS_PRINTER (printer)); + + printer->priv->accepts_ps = val; +} + gboolean gtk_printer_is_new (GtkPrinter *printer) { |