[cairo-commit] cairo-java/src/java/org/freedesktop/cairo Pattern.java, 1.6, 1.7 Gradient.java, 1.1, 1.2 SurfacePattern.java, 1.1, 1.2

Jeffrey Morgan commit at pdx.freedesktop.org
Sun Jun 26 16:15:51 PDT 2005


Committed by: kuzman

Update of /cvs/cairo/cairo-java/src/java/org/freedesktop/cairo
In directory gabe:/tmp/cvs-serv1699/src/java/org/freedesktop/cairo

Modified Files:
	Pattern.java Gradient.java SurfacePattern.java 
Log Message:
updated to match upstream changes.

Index: Pattern.java
===================================================================
RCS file: /cvs/cairo/cairo-java/src/java/org/freedesktop/cairo/Pattern.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- Pattern.java	9 May 2005 15:38:24 -0000	1.6
+++ Pattern.java	26 Jun 2005 23:15:49 -0000	1.7
@@ -31,7 +31,7 @@
      * @param matrix The transformation matrix.
      */
     public void setMatrix(Matrix matrix) {
-        int status = cairo_pattern_set_matrix(getHandle(), matrix.getHandle());
+        cairo_pattern_set_matrix(getHandle(), matrix.getHandle());
     }
     
     /**
@@ -41,7 +41,7 @@
      */
     public Matrix getMatrix() {
         Handle hndl = Struct.getNullHandle();
-        int status = cairo_pattern_get_matrix(getHandle(), hndl);
+        cairo_pattern_get_matrix(getHandle(), hndl);
         return new Matrix(hndl);
     }
     
@@ -49,20 +49,20 @@
 	 * Native calls
 	 */
     native static final private void cairo_pattern_destroy(Handle pat);
-    native static final private int cairo_pattern_set_matrix(Handle pat, Handle matrix);
-    native static final private int cairo_pattern_get_matrix(Handle pat, Handle matrix);
+    native static final private void cairo_pattern_set_matrix(Handle pat, Handle matrix);
+    native static final private void cairo_pattern_get_matrix(Handle pat, Handle matrix);
 
     // Used by SurfacePattern
     native static final protected Handle cairo_pattern_create_for_surface(Handle surface);
-    native static final protected int cairo_pattern_set_extend(Handle pat, int extend);
+    native static final protected void cairo_pattern_set_extend(Handle pat, int extend);
     native static final protected int cairo_pattern_get_extend(Handle pat);
-    native static final protected int cairo_pattern_set_filter(Handle pat, int filter);
+    native static final protected void cairo_pattern_set_filter(Handle pat, int filter);
     native static final protected int cairo_pattern_get_filter(Handle pat);
 	
     // Used by Gradient
-    native static final protected int cairo_pattern_add_color_stop_rgb(Handle pat, double offset,
+    native static final protected void cairo_pattern_add_color_stop_rgb(Handle pat, double offset,
             double red, double green, double blue);
-    native static final protected int cairo_pattern_add_color_stop_rgba(Handle pat, double offset,
+    native static final protected void cairo_pattern_add_color_stop_rgba(Handle pat, double offset,
             double red, double green, double blue, double alpha);
 
     // Used by LinearGradient

Index: Gradient.java
===================================================================
RCS file: /cvs/cairo/cairo-java/src/java/org/freedesktop/cairo/Gradient.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- Gradient.java	9 May 2005 15:38:24 -0000	1.1
+++ Gradient.java	26 Jun 2005 23:15:49 -0000	1.2
@@ -24,7 +24,7 @@
      * @param blue The value to use for blue
      */
     public void addColorStop(double offset, double red, double green, double blue) {
-        int status = cairo_pattern_add_color_stop_rgb(getHandle(), offset, red,
+        cairo_pattern_add_color_stop_rgb(getHandle(), offset, red,
                     green, blue);
     }
     
@@ -37,7 +37,7 @@
      * @param alpha alpha for the color
      */
     public void addColorStop(double offset, double red, double green, double blue, double alpha) {
-        int status = cairo_pattern_add_color_stop_rgba(getHandle(), offset, red,
+        cairo_pattern_add_color_stop_rgba(getHandle(), offset, red,
                     green, blue, alpha);
     }
     

Index: SurfacePattern.java
===================================================================
RCS file: /cvs/cairo/cairo-java/src/java/org/freedesktop/cairo/SurfacePattern.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- SurfacePattern.java	9 May 2005 15:38:24 -0000	1.1
+++ SurfacePattern.java	26 Jun 2005 23:15:49 -0000	1.2
@@ -19,7 +19,7 @@
      * @param extend The Extend to use. 
      */
     public void setExtend(Extend extend) {
-        int status = cairo_pattern_set_extend(getHandle(), extend.getValue());
+        cairo_pattern_set_extend(getHandle(), extend.getValue());
     }
     
     /**
@@ -35,7 +35,7 @@
      * @param filter  
      */
     public void setFilter(Filter filter) {
-        int status = cairo_pattern_set_filter(getHandle(), filter.getValue());
+        cairo_pattern_set_filter(getHandle(), filter.getValue());
     }
     
     /**




More information about the cairo-commit mailing list