[java-gnome-hackers] HBox constructor causing segfaults.
Brought to you by:
afcowie
From: Philip A. C. <pc...@td...> - 2002-10-20 04:13:50
|
Everyone, In the constructor org.gnu.gtk.HBox.HBox(), I commented out the line: initializeEventHandlers(); The reason is that it causes segfaults when called during the construction of org.gnu.gnome.AppBar, which extends HBox. AppBar works fine if I comment out the line in HBox as specified above and call initializeEventHandlers() from AppBar's constructor AFTER calling AppBar's gnome_appbar_new native method (thereby obtaining a handle). The same applies for org.gnu.gnome.DateEdit as it also extends org.gnu.gtk.HBox. Jeffrey, You are far more familiar with org_gnu_glib_GObject's create_callback method than I. Would you mind looking into this? Should subclasses of HBox simply always call initializeEventHandlers() or is there a way to make it work from HBox's constructor? The good news is that the TestGNOME application pretty much works now. There's a few annoying things, like buttons that do nothing on the dialogs that are opened from the main app. However. there are no more segfaults and all the enabled buttons on the main app seem to be doing what they are supposed to. Thanks, -- Philip A. Chapman |