[cairo-commit] rcairo/packages/gtkcairo/ext rgtkcairo.c,1.1,1.2

Oeyvind Kolaas commit at pdx.freedesktop.org
Mon Nov 22 14:09:33 PST 2004


Committed by: pippin

Update of /cvs/cairo/rcairo/packages/gtkcairo/ext
In directory gabe:/tmp/cvs-serv20068/packages/gtkcairo/ext

Modified Files:
	rgtkcairo.c 
Log Message:
code restructuring

Index: rgtkcairo.c
===================================================================
RCS file: /cvs/cairo/rcairo/packages/gtkcairo/ext/rgtkcairo.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- rgtkcairo.c	25 Nov 2003 04:35:42 -0000	1.1
+++ rgtkcairo.c	22 Nov 2004 22:09:31 -0000	1.2
@@ -1,7 +1,7 @@
 /* ruby-cairo - Ruby bindings for Cairo.
  * Copyright (C) 2003 Evan Martin <martine at danga.com>
+ *           (c) 2004 Øyvind Kolås <pippin at freedesktop.org>
  *
- * vim: tabstop=4 shiftwidth=4 noexpandtab :
  */
 
 #include "ruby.h"
@@ -14,7 +14,8 @@
 static VALUE cGtkCairo;
 
 static VALUE
-get_cairo(VALUE self) {
+get_cairo (VALUE self)
+{
 	GtkCairo *gtkcairo = RVAL2GOBJ(self);
 	cairo_t *cairo = gtk_cairo_get_cairo(gtkcairo);
 	VALUE rbcairo = rcairo_new_from(cairo);
@@ -22,7 +23,8 @@
 	return rbcairo;
 }
 
-void Init_gtkcairo() {
+void Init_gtkcairo ()
+{
 	/* define a "Gtk" class under module "Cairo".
 	 * cGtkCairo = G_DEF_CLASS(gtk_cairo_get_type(), "Gtk", mCairo); */
 




More information about the cairo-commit mailing list