RE: [Java-gnome-developer] Bugreport concering Frame
Brought to you by:
afcowie
From: Jeffrey M. <Jef...@Br...> - 2002-12-02 18:59:54
|
>=20 > Appeared this frame-error only with GCJ? This was an error with all JVM's (as far as I know). The constructor was passing 'null' to the native layer and the native layer was not checking for nulls. >=20 > > This issue is a little more complex. Internally I am using > > the "g_signal_connect_closure_by_id" method to connect my > > signals to a native method that calls the appropriate Java > > method. In that callback method I am setting the "return_value" > > parameter to the value returned from the Java layer. In the > > case of a "delete" signal I am always returning "false" which > > should cause the gtk library to propagate a "destroy" signal > > to the widget. This does not seem to be happening correctly. > > If the signal is being propagated it is not re-entering via > > the same route (I am not receiving the event in my callback). > > I am aware of this problem and have already started to look into > > it. I will keep the list up to date on my progress. > > > How was it done in 0.7.1? Am I right that the 0.8 is a very big step=20 > into the future? Closures really didn't exist in glib at the time 0.7 was out. This is only new with GTK 2. 0.8 is a very big step into the future. =20 The entire bindings have been rewritten to create a more robust foundation for the future. > I like the way like events are handeld in 0.8 very much. The=20 > funktion-based methode was really not java-like... Thanks for the complement. >=20 > May I ask some further questions: >=20 > 1.) How is GarbageCollection in Java-Gnome done? The=20 > SWT-Folks told me,=20 > it isnt possible to GC system-recources, because the GC doesnt know=20 > anything about the Gui-recources. Whats about seting the heap-size to = > 2gig and the write a program which simply creates and=20 > destroys windows... GTK handles almost all of the reference counting and resource=20 allocation (including the freeing of system resources). Since=20 SWT also wrapps Motif and Win32 they could not depend upon this feature (it doesn't exist on Motif and Win32). > 2.) Does GTK2 have a simple Widget which can render HTML? I want to=20 > write a Configuration-Fronent very similar to the KDE-Control-Center, = > with dynanically loaded plugins, and also want to include a good=20 > tutorial and help with pictures, tables (isnt so important) and=20 > links(!!). Is there another way to do so (I read that the=20 > Text-Widget of=20 > GTK2 can embedd pictures), the format is not so important, I=B4m only = > afraid that this widget cant make links... The new text widget is very rich. I am not sure if it supports links. You can find more info at http://developer.gnome.org/doc/API/2.0/gtk/TextWidget.html. This widget isn't completely tested in the current implementation. = Please let us know if you find any problems. Thanks -Jeff |