[cairo-commit] rcairo/src/lib cairo.rb,1.17,1.18
Kouhei Sutou
commit at pdx.freedesktop.org
Sat Aug 16 05:52:19 PDT 2008
- Previous message: [cairo-commit] rcairo/src cairo.def, 1.16, 1.17 rb_cairo.h, 1.21, 1.22 rb_cairo_context.c, 1.27, 1.28 rb_cairo_exception.c, 1.3, 1.4 rb_cairo_font_face.c, 1.5, 1.6 rb_cairo_private.c, 1.8, 1.9 rb_cairo_private.h, 1.11, 1.12 rb_cairo_surface.c, 1.40, 1.41
- Next message: [cairo-commit] rcairo/test test_font_face.rb,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Committed by: kou
Update of /cvs/cairo/rcairo/src/lib
In directory kemper:/tmp/cvs-serv9707/src/lib
Modified Files:
cairo.rb
Log Message:
* src/lib/cairo.rb (Cairo.exit_application): add.
* src/rb_cairo_surface.c: use rb_cairo__invoke_callback().
* src/rb_cairo_private.c, src/rb_cairo_private.h
(rb_cairo__invoke_callback): use rb_protect() and exit if an
exception is raised in callback.
* src/rb_cairo_font_face.c: support Cairo::UserFontFace.
* src/rb_cairo_exception.c, src/rb_cairo_private.h
(rb_cairo__exception_to_status): add.
* src/rb_cairo_context.c (cr_show_text_glyphs): initialize variables.
* src/cairo.def, src/rb_cairo.h: add
rb_cCairo_UserFontFace_TextToGlyphsData.
* test/test_font_face.rb: add tests for user font.
Index: cairo.rb
===================================================================
RCS file: /cvs/cairo/rcairo/src/lib/cairo.rb,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- cairo.rb 24 Apr 2008 06:00:47 -0000 1.17
+++ cairo.rb 16 Aug 2008 12:52:17 -0000 1.18
@@ -45,14 +45,19 @@
module Cairo
class << self
undef __add_one_arg_setter
- end
- module_function
- def bindings_version
- major, minor, micro, tag = BINDINGS_VERSION
- version = [major, minor, micro].join('.')
- version << "-#{tag}" if tag
- version
+ def bindings_version
+ major, minor, micro, tag = BINDINGS_VERSION
+ version = [major, minor, micro].join('.')
+ version << "-#{tag}" if tag
+ version
+ end
+
+ def exit_application(exception, status)
+ puts("#{exception.class}: #{exception}")
+ puts(exception.backtrace)
+ exit(status)
+ end
end
class Surface
- Previous message: [cairo-commit] rcairo/src cairo.def, 1.16, 1.17 rb_cairo.h, 1.21, 1.22 rb_cairo_context.c, 1.27, 1.28 rb_cairo_exception.c, 1.3, 1.4 rb_cairo_font_face.c, 1.5, 1.6 rb_cairo_private.c, 1.8, 1.9 rb_cairo_private.h, 1.11, 1.12 rb_cairo_surface.c, 1.40, 1.41
- Next message: [cairo-commit] rcairo/test test_font_face.rb,1.1,1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cairo-commit
mailing list