[java-gnome-hackers] Init code for gnome.
Brought to you by:
afcowie
From: Philip A. C. <pc...@td...> - 2002-09-08 03:12:14
|
Everyone, I've put the gnome program initialization code in org.gnu.gnome.Program. It is taken almost whole-sale from the old GnomeProgram class file. There are 4 methods which do initialization.=20 initLibgnome0, initLibgnome1, initLibgnomeui0, and initLibgnomeui1.=20 Because initLibgnome0 and initLibgnome1 have the same number and types of arguments as initLibgnomeui0 and initLibgnomeui1 (respectively) I could not create four constructors. Therefore, I created a protected constructor and four public static methods which will make the appropriate native calls, create a new instance of org.gnu.gnome.Program, and return it. I updated TestGNOME to use initLibgnomeui1 through the appropriate static method. It seems to be working in that it can build and display the main window. However, every time I mouse into the window, I get a segmentation fault. Is anyone aware of any issues with the handling of mouse events? The TestGNOME program does not listen for mouse events.=20 I could add it if it would help in the debugging process. Thanks, --=20 Philip A. Chapman |