[gtkmm] Restored the GtkPrintCapabilities enum.



commit ee3062139dfd026f5193db71e44cb41ad0e74e39
Author: Murray Cumming <murrayc murrayc com>
Date:   Mon Dec 6 17:09:00 2010 +0100

    Restored the GtkPrintCapabilities enum.
    
    * gtk/src/gtk_enums.defs: Added the result from unix-print/gtk/, lost when
    regenerating.
    
    gtkmm now builds again against the latest GTK+ 3 from git master.

 ChangeLog              |    9 +++++++++
 gtk/src/gtk_enums.defs |   35 +++++++++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 45bda14..2e0dc48 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
 2010-12-06  Murray Cumming  <murrayc murrayc com>
 
+	Restored the GtkPrintCapabilities enum.
+
+	* gtk/src/gtk_enums.defs: Added the result from unix-print/gtk/, lost when 
+	regenerating.
+	
+	gtkmm now builds again against the latest GTK+ 3 from git master.
+
+2010-12-06  Murray Cumming  <murrayc murrayc com>
+
 	Add and use WidgetPath.
 
 	* gtk/gtkmm.h:
diff --git a/gtk/src/gtk_enums.defs b/gtk/src/gtk_enums.defs
index 31eb50e..3b4a9e0 100644
--- a/gtk/src/gtk_enums.defs
+++ b/gtk/src/gtk_enums.defs
@@ -2309,3 +2309,38 @@
   )
 )
 
+;; From gtkprinter.h
+
+;; Original typedef:
+;; 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,
+;;   GTK_PRINT_CAPABILITY_NUMBER_UP        = 1 << 8,
+;;   GTK_PRINT_CAPABILITY_NUMBER_UP_LAYOUT = 1 << 9
+;; } GtkPrintCapabilities;
+
+(define-flags-extended PrintCapabilities
+  (in-module "Gtk")
+  (c-name "GtkPrintCapabilities")
+  (values
+    '("page-set" "GTK_PRINT_CAPABILITY_PAGE_SET" "1 << 0")
+    '("copies" "GTK_PRINT_CAPABILITY_COPIES" "1 << 1")
+    '("collate" "GTK_PRINT_CAPABILITY_COLLATE" "1 << 2")
+    '("reverse" "GTK_PRINT_CAPABILITY_REVERSE" "1 << 3")
+    '("scale" "GTK_PRINT_CAPABILITY_SCALE" "1 << 4")
+    '("generate-pdf" "GTK_PRINT_CAPABILITY_GENERATE_PDF" "1 << 5")
+    '("generate-ps" "GTK_PRINT_CAPABILITY_GENERATE_PS" "1 << 6")
+    '("preview" "GTK_PRINT_CAPABILITY_PREVIEW" "1 << 7")
+    '("number-up" "GTK_PRINT_CAPABILITY_NUMBER_UP" "1 << 8")
+    '("number-up-layout" "GTK_PRINT_CAPABILITY_NUMBER_UP_LAYOUT" "1 << 9")
+  )
+)
+
+



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