Announcement (2017-05-07): www.ruby-forum.com is now read-only since I
unfortunately do not have the time to support and maintain the forum any
more. Please see rubyonrails.org/community and ruby-lang.org/en/community
for other Rails- und Ruby-related community platforms.

Hi,
with gtk3 Gdk::Window.create_cairo_contex is gone. The C implementation
of gdk3 has a gdk_cairo_* "namespace" for cairo related functions.
For the ruby implementation I think it is best to put the function
cairo_t *gdk_cairo_create (GdkWindow *window);
which is a replacement for create_cairo_contex in
Gdk::Window.cairo_create
any objections?
Cheers detlef

Hi,
In <517D6723.4010705@gmx.org>
"[ruby-gnome2-devel-en] gtk3 Gdk::Window.create_cairo_contex
replacement" on Sun, 28 Apr 2013 20:14:59 +0200,
Detlef Reichl <detlef.reichl@gmx.org> wrote:
> with gtk3 Gdk::Window.create_cairo_contex is gone. The C implementation> of gdk3 has a gdk_cairo_* "namespace" for cairo related functions.>> For the ruby implementation I think it is best to put the function>> cairo_t *gdk_cairo_create (GdkWindow *window);>> which is a replacement for create_cairo_contex in>> Gdk::Window.cairo_create
Thanks, I didn't know about it.
I added Gdk::Window#create_cairo_context because:
* The API is backward compatible. :-)
* It is a natural that method name uses a verb.
Using namespace (or prefix) as a method name is not
Object Oriented programming way. It is a sign that we
should break the object.
Thanks,
--
kou