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 [email protected]
“[ruby-gnome2-devel-en] gtk3 Gdk::Window.create_cairo_contex
replacement” on Sun, 28 Apr 2013 20:14:59 +0200,
Detlef R. [email protected] 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
Hi,
Am 29.04.2013 05:58, schrieb Kouhei S.:
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:
Thanks!
Cheers, detlef