Hello
Reading the tutorial in the section related to menus
(http://java-gnome.sourceforge.net/docs/GNOME-tutorial/x133.html)
I read that on every menu there is a need to add at the end of every
UIInfo[] one with the code UIInfo.end(). In C this is a necesity 'cause
we need to say where is the end one way or the other, but as we know,
in Java the length of the array is always obtained directly from the
array object.
I think that the native code that receives the array of UIInfo should
automatically put the termination field in the C structure
automatically based on the length of the array. That way the code is
more Java like and with the good extra of avoiding to create one extra
object in java.
Also compatibility can be maintained checking if the last object is an
UIInfo.end() result (haven't checked this function code but I suppose
is easy to check for it).
Maybe this was added to maintain as much similarity as possible with
the equivalent C code, but anyway gnome-java also has added some other
facilities, for example in the section of TreeView
(http://java-gnome.sourceforge.net/docs/GNOME-tutorial/x765.html)
the tutorial says that gnome-java has added simple classes to handle
the complex TreeView widget.
I think that removing this extra node in the java side can represent
that starters will never forget to put this node (will be no need! :-)
) and also maybe make the library easier.
what do you think?
Rivas
__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree
|