[cairo-commit] rcairo/src rb_cairo_context.c,1.31,1.32

Kouhei Sutou commit at pdx.freedesktop.org
Fri Sep 26 06:52:11 PDT 2008


Committed by: kou

Update of /cvs/cairo/rcairo/src
In directory kemper:/tmp/cvs-serv7162/src

Modified Files:
	rb_cairo_context.c 
Log Message:
* src/rb_cairo_context.c: support cairo 1.8.0.


Index: rb_cairo_context.c
===================================================================
RCS file: /cvs/cairo/rcairo/src/rb_cairo_context.c,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -d -r1.31 -r1.32
--- rb_cairo_context.c	19 Sep 2008 12:56:27 -0000	1.31
+++ rb_cairo_context.c	26 Sep 2008 13:52:08 -0000	1.32
@@ -1205,13 +1205,7 @@
   return self;
 }
 
-#if CAIRO_CHECK_VERSION(1, 7, 6)
-static VALUE
-cr_has_show_text_glyphs (VALUE self)
-{
-  return CBOOL2RVAL (cairo_has_show_text_glyphs (_SELF));
-}
-
+#if CAIRO_CHECK_VERSION(1, 8, 0)
 static VALUE
 cr_show_text_glyphs (VALUE self, VALUE rb_utf8, VALUE rb_glyphs,
                      VALUE rb_clusters, VALUE rb_cluster_flags)
@@ -1654,11 +1648,7 @@
 #endif
   rb_define_method (rb_cCairo_Context, "show_text", cr_show_text, 1);
   rb_define_method (rb_cCairo_Context, "show_glyphs", cr_show_glyphs, 1);
-#if CAIRO_CHECK_VERSION(1, 7, 2)
-  rb_define_method (rb_cCairo_Context, "have_show_text_glyphs?",
-                    cr_has_show_text_glyphs, 0);
-  rb_define_alias (rb_cCairo_Context,
-                   "has_show_text_glyphs?", "have_show_text_glyphs?");
+#if CAIRO_CHECK_VERSION(1, 8, 0)
   rb_define_method (rb_cCairo_Context, "show_text_glyphs",
                     cr_show_text_glyphs, 4);
 #endif



More information about the cairo-commit mailing list