[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
- Previous message: [cairo-commit] rcairo ChangeLog,NONE,1.1
- Next message: [cairo-commit] rcairo/packages/cairo/ext cairo.c, 1.7,
1.8 gen-Cairo.c, 1.1, 1.2 gen-CairoMatrix.c, 1.1,
1.2 gen-CairoSurface.c, 1.1, 1.2 gen-constants.c, 1.1,
1.2 image.c, 1.3, 1.4 rbcairo.h, 1.4, 1.5 xlib.c, 1.3, 1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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); */
- Previous message: [cairo-commit] rcairo ChangeLog,NONE,1.1
- Next message: [cairo-commit] rcairo/packages/cairo/ext cairo.c, 1.7,
1.8 gen-Cairo.c, 1.1, 1.2 gen-CairoMatrix.c, 1.1,
1.2 gen-CairoSurface.c, 1.1, 1.2 gen-constants.c, 1.1,
1.2 image.c, 1.3, 1.4 rbcairo.h, 1.4, 1.5 xlib.c, 1.3, 1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cairo-commit
mailing list