Forum: Ruby-Gnome 2 Gdk::Window.create_cairo_context missing?

Posted by Dave Foster (Guest)
on 2010-02-05 18:31
(Received via mailing list)
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-Cair...

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
Posted by Kouhei Sutou (Guest)
on 2010-02-06 03:22
(Received via mailing list)
Hi,

In <f915ce0a1002050931g6d35a43aw87423a4c071b67d1@mail.gmail.com>
  "[ruby-gnome2-devel-en] Gdk::Window.create_cairo_context missing?" on 
Fri, 5 Feb 2010 12:31:15 -0500,
  Dave Foster <dave.foster@gmail.com> 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
Posted by Dave Foster (Guest)
on 2010-02-06 07:14
(Received via mailing list)
On Sat, Feb 6, 2010 at 2:04 AM, Kouhei Sutou <kou@cozmixng.org> 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
Posted by Dobai-Pataky Bálint (Guest)
on 2010-02-07 21:55
(Received via mailing list)
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
Posted by Marc Heiler (shevegen)
on 2011-08-27 21:03
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?
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.