[cairo-commit] rcairo/src rb_cairo_surface.c,1.27,1.28

Kouhei Sutou commit at pdx.freedesktop.org
Fri Apr 11 04:02:21 PDT 2008


Committed by: kou

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

Modified Files:
	rb_cairo_surface.c 
Log Message:
* src/rb_cairo_surface.c: implemented Cairo::PSSurface#eps?.


Index: rb_cairo_surface.c
===================================================================
RCS file: /cvs/cairo/rcairo/src/rb_cairo_surface.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -d -r1.27 -r1.28
--- rb_cairo_surface.c	11 Apr 2008 05:23:19 -0000	1.27
+++ rb_cairo_surface.c	11 Apr 2008 11:07:10 -0000	1.28
@@ -792,6 +792,12 @@
 }
 
 static VALUE
+cr_ps_surface_get_eps (VALUE self)
+{
+  return cairo_ps_surface_get_eps (_SELF) ? Qtrue : Qfalse;
+}
+
+static VALUE
 cr_ps_surface_set_eps (VALUE self, VALUE eps)
 {
   cairo_ps_surface_set_eps (_SELF, RTEST (eps));
@@ -1168,8 +1174,8 @@
 #if CAIRO_CHECK_VERSION(1, 5, 2)
   rb_define_method (rb_cCairo_PSSurface, "restrict_to_level",
                     cr_ps_surface_restrict_to_level, 1);
-  rb_define_method (rb_cCairo_PSSurface, "set_eps",
-                    cr_ps_surface_set_eps, 1);
+  rb_define_method (rb_cCairo_PSSurface, "eps?", cr_ps_surface_get_eps, 0);
+  rb_define_method (rb_cCairo_PSSurface, "set_eps", cr_ps_surface_set_eps, 1);
 #endif
 
   RB_CAIRO_DEF_SETTERS (rb_cCairo_PSSurface);



More information about the cairo-commit mailing list