[Jprogramming] gtkwd bugs

Ian Clark earthspotty at gmail.com
Tue Mar 6 05:01:23 HKT 2012


Congratulation to Bill Lam for gui/gtkwd, which has given a flying
start to porting math/tabula to j7, not to mention many treasured j6
demos.

A few j6/j7 wd incompatibilities revealed by math/tabula running under jgtk...

To see these:
   load 'math/tabula'   NB. same in both j6 and jgtk

** Help -won't go to Info tab (in fact all verbs which are meant to
change tabs don't do so).
	Menu: Help > Help for 1-char commands -executes: hlpc_tab_''
	setshow_tab_'' has become inoperative (setshow 4  should open tab 4 ("inf"))
	because wd'setshow inf 4' and wd'setselect tabs 4' appear to be no-ops.

** resize goes wrong, especially if bottom-right corner dragged too fast.
	(affects controls with: rightmove and bottommove)

** Toolbar icons' colors are corrupted because rgb codes get interpreted as bgr
	(this affects: glpixels, but I don't know what else)

** button: Append in tab: Consts applies itself twice.
	But, changing...
	consts_cappend_button=: newc
	to...
	consts_cappend_button=: smoutput bind 'hi'
		-shows the handler is only called once by the mouseclick.
	But somehow, newc gets called twice.
	(I suspect it's tied up with the wd-operation taking place in a
currently hidden tab.)

** wd 'setselect panel 11'
	--(if line 11 is absent) causes the message to appear in the
associated jconsole:
	(<unknown>:9592): Gtk-CRITICAL **: gtk_list_store_get_path: assertion
`iter->stamp == GTK_LIST_STORE (tree_model)->stamp' failed
	whereas j6 forgives this "error".

I'm hoping the location of each bug will be clear from the above. For
those that aren't, I'll happily isolate the bug into a demo script.

I note too that verb: fcopynews_z_ (used by: cal and formerly loaded
by: require 'files') is undefined in jgtk. However fcopynew_z_ is
still there, but now defined in stdlib. Is the absence of fcopynews in
jgtk deliberate, or an oversight?


More information about the Programming mailing list