summaryrefslogtreecommitdiff
path: root/gtk/gtkprinter.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2006-12-24 13:16:05 +0000
committerChristian Persch <chpe@src.gnome.org>2006-12-24 13:16:05 +0000
commit4f5e5b483411574231f8ead5f652ef6f4a5982cb (patch)
treed48b4d2a864af3b3f3efc0f4ff61948e3cb2e734 /gtk/gtkprinter.c
parent842b3183067e9356c01d88ce5c5f9ac0f887de20 (diff)
downloadgtk+-4f5e5b483411574231f8ead5f652ef6f4a5982cb.tar.gz
Make gtk_printer_list_papers public. Bug #345587.
2006-12-24 Christian Persch <chpe@cvs.gnome.org> * docs/reference/gtk/gtk-sections.txt: * gtk/gtk.symbols: * gtk/gtkpagesetupunixdialog.c: (fill_paper_sizes_from_printer): * gtk/gtkprinter-private.h: * gtk/gtkprinter.c: (gtk_printer_list_papers): * gtk/gtkprinter.h: Make gtk_printer_list_papers public. Bug #345587.
Diffstat (limited to 'gtk/gtkprinter.c')
-rw-r--r--gtk/gtkprinter.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/gtk/gtkprinter.c b/gtk/gtkprinter.c
index 60c06523e8..b8200b8c10 100644
--- a/gtk/gtkprinter.c
+++ b/gtk/gtkprinter.c
@@ -784,11 +784,24 @@ _gtk_printer_create_cairo_surface (GtkPrinter *printer,
width, height, cache_io);
}
+/**
+ * gtk_printer_list_papers:
+ * @printer:
+ *
+ * Lists all the page sizes @printer supports.
+ *
+ * Return value: a newly allocated list of newly allocated #GtkPageSetup:s.
+ *
+ * Since: 2.12
+ */
GList *
-_gtk_printer_list_papers (GtkPrinter *printer)
+gtk_printer_list_papers (GtkPrinter *printer)
{
- GtkPrintBackendClass *backend_class = GTK_PRINT_BACKEND_GET_CLASS (printer->priv->backend);
+ GtkPrintBackendClass *backend_class;
+
+ g_return_val_if_fail (GTK_IS_PRINTER (printer), NULL);
+ backend_class = GTK_PRINT_BACKEND_GET_CLASS (printer->priv->backend);
return backend_class->printer_list_papers (printer);
}