Gdk::Window.create_cairo_context missing?

Hi all -

Since about Ruby-GNOME2 0.19.0 or so, the create_cairo_context method no
longer exists and aborts my program (which relies on it, there is no
point
to my program without it).

According to gdk documentation here:
http://library.gnome.org/devel/gdk/stable/gdk-Cairo-Interaction.html

There exists a new method called gdk_cairo_create which I think takes
the
place of the old Gdk::Window.create. Is this wrapped in Ruby-GNOME2,
and
how can I call it? I’d like to get my program working again.

Thanks!
dave

Hi,

In [email protected]
“[ruby-gnome2-devel-en] Gdk::Window.create_cairo_context missing?” on
Fri, 5 Feb 2010 12:31:15 -0500,
Dave F. [email protected] wrote:

Since about Ruby-GNOME2 0.19.0 or so, the create_cairo_context method no longer
exists and aborts my program (which relies on it, there is no point to my
program without it).

There exists a new method called gdk_cairo_create which I think takes the place
of the old Gdk::Window.create. Is this wrapped in Ruby-GNOME2, and how can I
call it? I’d like to get my program working again.

You need to install rcairo before you build Ruby-GNOME2.

Thanks,

kou

On Sat, Feb 6, 2010 at 2:04 AM, Kouhei S. [email protected] wrote:

You need to install rcairo before you build Ruby-GNOME2.

Thanks. I was using my distribution’s build (Archlinux) and that did
not
seem to have Gdk::Window.create_cairo_context available. I checked out
SVN
ruby-gnome2 (rcairo was already installed from Arch repositories), built
it,
and it all worked again.

I’ll file a bug with Arch about it.

thanks,
dave

i’ve seen this on gentoo.
ruby-gtk2 built with rcairo-1.8.1 has the mentioned cairo_conext method
missing ( also in PrintOperation)
ruby-gtk2 built with rcairo-1.8.0-r1 works as expected.

which rcairo version did you use on archlinux?

thanks,
Balint

Hmm. Running into this problem again.

Is there a recommended version to work?

As in, which cairo version to use and which rcairo version to use?