-(define-function pango_context_new
- (is-constructor-of "PangoContext")
- (c-name "pango_context_new")
- (caller-owns-return #t)
- (return-type "PangoContext*")
-)
-
-(define-method add_font_map
- (of-object "PangoContext")
- (c-name "pango_context_set_font_map")
- (return-type "none")
- (parameters
- '("PangoFontMap*" "font_map")
- )
-)
+;;This function is only used when constructing a new Pango backend which
+;;applications shouldn't do, and relies on a special #define to be present in
+;;the C API. This is not planned to be exposed in java-gnome so it is
+;;commented out and fixes bug #528282
+
+;;(define-function pango_context_new
+;; (is-constructor-of "PangoContext")
+;; (c-name "pango_context_new")
+;; (caller-owns-return #t)
+;; (return-type "PangoContext*")
+;;)
+
+;;(define-method add_font_map
+;; (of-object "PangoContext")
+;; (c-name "pango_context_set_font_map")
+;; (return-type "none")
+;; (parameters
+;; '("PangoFontMap*" "font_map")
+;; )
+;;)
The remaining changes in that patch are in a different file, src/defs/ PangoContext. defs:
diff -u java-gnome- 4.0.{7, 9}/src/ defs/PangoConte xt.defs 4.0.7/src/ defs/PangoConte xt.defs 2008-04-30 04:52:30.000000000 +0200 4.0.9/src/ defs/PangoConte xt.defs 2008-10-13 11:36:36.000000000 +0200 TYPE_CONTEXT" )
--- java-gnome-
+++ java-gnome-
@@ -5,21 +5,26 @@
(gtype-id "PANGO_
)
-(define-function pango_context_new context_ new") context_ set_font_ map") context_ new") context_ set_font_ map")
- (is-constructor-of "PangoContext")
- (c-name "pango_
- (caller-owns-return #t)
- (return-type "PangoContext*")
-)
-
-(define-method add_font_map
- (of-object "PangoContext")
- (c-name "pango_
- (return-type "none")
- (parameters
- '("PangoFontMap*" "font_map")
- )
-)
+;;This function is only used when constructing a new Pango backend which
+;;applications shouldn't do, and relies on a special #define to be present in
+;;the C API. This is not planned to be exposed in java-gnome so it is
+;;commented out and fixes bug #528282
+
+;;(define-function pango_context_new
+;; (is-constructor-of "PangoContext")
+;; (c-name "pango_
+;; (caller-owns-return #t)
+;; (return-type "PangoContext*")
+;;)
+
+;;(define-method add_font_map
+;; (of-object "PangoContext")
+;; (c-name "pango_
+;; (return-type "none")
+;; (parameters
+;; '("PangoFontMap*" "font_map")
+;; )
+;;)
(define-method get_font_map
(of-object "PangoContext")