summaryrefslogtreecommitdiff
path: root/gtk/gtkprinter.h
diff options
context:
space:
mode:
authorChristian Persch <chpe@gnome.org>2007-04-30 19:12:00 +0000
committerChristian Persch <chpe@src.gnome.org>2007-04-30 19:12:00 +0000
commitbe87e9a8cd6d60250360d99685e368a921a03e05 (patch)
tree41a5f976a7f8f391dfbfab9027ffbf3f885158e5 /gtk/gtkprinter.h
parent3cc1085d978db3f698071141fd64133a483d2015 (diff)
downloadgtk+-be87e9a8cd6d60250360d99685e368a921a03e05.tar.gz
Make gtk_printer_get_capabilities public, and move the
2007-04-30 Christian Persch <chpe@gnome.org> * docs/reference/gtk/gtk-sections.txt: * gtk/gtk.symbols: * gtk/gtkprinter-private.h: * gtk/gtkprinter.c: (gtk_printer_get_capabilities), (gtk_print_capabilities_get_type): * gtk/gtkprinter.h: * gtk/gtkprintunixdialog.c: (selected_printer_changed): Make gtk_printer_get_capabilities public, and move the GtkPrintCapabilities definition to gtkprinter.h. Bug #390437. svn path=/trunk/; revision=17746
Diffstat (limited to 'gtk/gtkprinter.h')
-rw-r--r--gtk/gtkprinter.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/gtk/gtkprinter.h b/gtk/gtkprinter.h
index 69865e418a..4c14d21bb9 100644
--- a/gtk/gtkprinter.h
+++ b/gtk/gtkprinter.h
@@ -33,6 +33,21 @@ G_BEGIN_DECLS
#define GTK_IS_PRINTER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_PRINTER))
#define GTK_PRINTER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_PRINTER, GtkPrinterClass))
+/* Note, this type is manually registered with GObject in gtkprinter.c
+ * If you add any flags, update the registration as well!
+ */
+typedef enum
+{
+ GTK_PRINT_CAPABILITY_PAGE_SET = 1 << 0,
+ GTK_PRINT_CAPABILITY_COPIES = 1 << 1,
+ GTK_PRINT_CAPABILITY_COLLATE = 1 << 2,
+ GTK_PRINT_CAPABILITY_REVERSE = 1 << 3,
+ GTK_PRINT_CAPABILITY_SCALE = 1 << 4,
+ GTK_PRINT_CAPABILITY_GENERATE_PDF = 1 << 5,
+ GTK_PRINT_CAPABILITY_GENERATE_PS = 1 << 6,
+ GTK_PRINT_CAPABILITY_PREVIEW = 1 << 7
+} GtkPrintCapabilities;
+
typedef struct _GtkPrinter GtkPrinter;
typedef struct _GtkPrinterClass GtkPrinterClass;
typedef struct _GtkPrinterPrivate GtkPrinterPrivate;
@@ -84,6 +99,7 @@ gint gtk_printer_compare (GtkPrinter *a,
GtkPrinter *b);
gboolean gtk_printer_has_details (GtkPrinter *printer);
void gtk_printer_request_details (GtkPrinter *printer);
+GtkPrintCapabilities gtk_printer_get_capabilities (GtkPrinter *printer);
typedef gboolean (*GtkPrinterFunc) (GtkPrinter *printer,
gpointer data);