[cairo-commit] pycairo/cairo cairomodule.c, 1.62, 1.63 pycairo-context.c, 1.83, 1.84

Steve Chaplin commit at pdx.freedesktop.org
Wed Mar 14 02:18:24 PDT 2007


Committed by: stevech1097

Update of /cvs/cairo/pycairo/cairo
In directory kemper:/tmp/cvs-serv1435/cairo

Modified Files:
	cairomodule.c pycairo-context.c 
Log Message:
'SC'

Index: cairomodule.c
===================================================================
RCS file: /cvs/cairo/pycairo/cairo/cairomodule.c,v
retrieving revision 1.62
retrieving revision 1.63
diff -u -d -r1.62 -r1.63
--- cairomodule.c	16 Jan 2007 14:59:34 -0000	1.62
+++ cairomodule.c	14 Mar 2007 09:18:17 -0000	1.63
@@ -37,9 +37,9 @@
 #include "pycairo-private.h"
 
 #define VERSION_MAJOR 1
-#define VERSION_MINOR 3
-#define VERSION_MICRO 1
-static char pycairo_version_string[] = "1.3.1";
+#define VERSION_MINOR 4
+#define VERSION_MICRO 0
+static char pycairo_version_string[] = "1.4.0";
 
 
 /* A module specific exception */

Index: pycairo-context.c
===================================================================
RCS file: /cvs/cairo/pycairo/cairo/pycairo-context.c,v
retrieving revision 1.83
retrieving revision 1.84
diff -u -d -r1.83 -r1.84
--- pycairo-context.c	21 Jan 2007 13:49:31 -0000	1.83
+++ pycairo-context.c	14 Mar 2007 09:18:17 -0000	1.84
@@ -458,6 +458,13 @@
 }
 
 static PyObject *
+pycairo_get_scaled_font (PycairoContext *o)
+{
+    return PycairoScaledFont_FromScaledFont (
+	       cairo_scaled_font_reference (cairo_get_scaled_font (o->ctx)));
+}
+
+static PyObject *
 pycairo_get_source (PycairoContext *o)
 {
     return PycairoPattern_FromPattern (
@@ -1334,6 +1341,7 @@
     {"get_matrix",      (PyCFunction)pycairo_get_matrix,      METH_NOARGS},
     {"get_miter_limit", (PyCFunction)pycairo_get_miter_limit, METH_NOARGS},
     {"get_operator",    (PyCFunction)pycairo_get_operator,    METH_NOARGS},
+    {"get_scaled_font", (PyCFunction)pycairo_get_scaled_font, METH_NOARGS},
     {"get_source",      (PyCFunction)pycairo_get_source,      METH_NOARGS},
     {"get_target",      (PyCFunction)pycairo_get_target,      METH_NOARGS},
     {"get_tolerance",   (PyCFunction)pycairo_get_tolerance,   METH_NOARGS},



More information about the cairo-commit mailing list