Hi Anton,
I took a look at the latest gtk bindings code. It looks good but needs
a few fixes. I think once you fix these problems, we should merge it
as soon as its minimally usable, so that it can get more testing from
users.
- basis/pango/cairo/cairo.factor references 'cairo.pango.ffi'.
Changing it to 'pango.cairo.ffi' makes it load.
- typing in the UI listener immediately crashes with a fep. Changing
"[ first2 ] bi@" to "[ first2 [ >fixnum ] bi@ ]" in ui.backend.gtk
fixes that problem.
- Mouse clicks are not handled properly because the GdkEventButton
struct is defined wrong. Looking at it in the gesture-logger, I'm
seeing mouse clicks produce the following:
T{ button-down { mods { S+ } } { # 131694336 } }
Comparing the definition of GdkEventButton in gdkevent.h with
GdkEventButton that gets generated in Factor, I see the former has a
field 'gdouble * axis' and the latter has 'gdouble axis'. On 64-bit
systems, as long as this field is never accessed there will not be a
problem, but on 32-bit it messes up the struct layout. I suspect you
only tested on x86-64 :-)
- ui.backends.gtk:gadget-location is duplicating ui.gadgets:screen-loc.
- I get this error when closing the help browser window:
Type check error
Object: ALIEN: a9b2df84
Object type: alien
Expected type: fixnum
(O) Word: ( callback )
(O) Word: on-preedit-changed
(O) Word: get-preedit-string
(U) Quotation: [
63 special-object error-thread set-global
continuation -> error-continuation set-global
[ original-error set-global ] [ rethrow ] bi
]
- Deployed images are too large; one problem is that io.backend.unix
is always pulled in by the Gtk backend. hello-ui deploys down to 2.6mb
with the Gtk backend and 1.2 Mb with X11.
- You may as well nuke opengl.gl.x11 and ui.backend.x11 at this point;
they no longer work since the pango code pulls in gtk.
Slava
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Factor-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/factor-talk