From: Guillaume C. <gg...@us...> - 2005-09-29 19:07:01
|
Update of /cvsroot/ruby-gnome2/ruby-gnome2/gtk/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21686/gtk/src Modified Files: rbgdkdraw.c Log Message: Gdk::Drawable: add #create_cairo_context forgotten in commit by kouhei Index: rbgdkdraw.c =================================================================== RCS file: /cvsroot/ruby-gnome2/ruby-gnome2/gtk/src/rbgdkdraw.c,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- rbgdkdraw.c 28 Sep 2005 10:13:24 -0000 1.25 +++ rbgdkdraw.c 29 Sep 2005 19:06:51 -0000 1.26 @@ -445,6 +445,13 @@ rb_define_method(gdkDrawable, "copy_to_image", gdkdraw_copy_to_image, 7); #endif +#if GTK_CHECK_VERSION(2,8,0) +# ifdef HAVE_RB_CAIRO_H + rb_define_method(gdkDrawable, "create_cairo_context", + gdkdraw_cairo_create, 0); +# endif +#endif + #ifdef GDK_WINDOWING_X11 rb_define_method(gdkDrawable, "xid", gdkdraw_get_xid, 0); #endif |