Re: [Java-gnome-developer] Re: About window
Brought to you by:
afcowie
From: Rishabh M. <rma...@gm...> - 2004-10-11 20:36:20
|
hi, I tried using the Pixbuf instead of null but I still get the same result. As for errors, if I use Program.initGnomeUI, I do not get any errors/exceptions, however, when I use Gtk.init(args) to start the application(in static main), I get the following error when I click on the Help->About menu button: ListenerDelegate.fireEvent(org.gnu.gtk.event.MenuItemEvent[source=org.gnu.gtk.ImageMenuItem@81c8408,id=ACTIVATE]): java.lang.UnsatisfiedLinkError: gnome_about_new java.lang.UnsatisfiedLinkError: gnome_about_new at org.gnu.gnome.About.gnome_about_new(Native Method) at org.gnu.gnome.About.init(About.java:42) at org.gnu.gnome.About.<init>(About.java) at org.jfortuneui.jfortuneui.on_about1_activate(jfortuneui.java:64) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.gnu.glade.ListenerDelegate.fireEvent(ListenerDelegate.java:114) at org.gnu.glade.ListenerDelegate.fireEvent(ListenerDelegate.java:86) at org.gnu.glade.MenuItemDelegate.menuItemEvent(MenuItemDelegate.java:20) at org.gnu.gtk.MenuItem.fireMenuItemEvent(MenuItem.java:197) at org.gnu.gtk.MenuItem.handleActivate(MenuItem.java:203) at org.gnu.gtk.Gtk.gtk_main(Native Method) at org.gnu.gtk.Gtk.main(Gtk.java:53) I thought this was some sort of a listener error and that is when I had added the MenuItemEvent parameter in the about method. Yet, that does not seem to solve the problem. Thanks for the help. --Rishabh On Mon, 11 Oct 2004 20:45:51 +0100, Mark Howard <mh...@ti...> wrote: > I'm not sure if this will help, but could you try adding new > org.gnu.gdk.Pixbuf( "/usr/share/pixmaps/gnome-applications.png" ) (or any other > icon) in place of the null at the end of the call to new About(..). If this > fixes it, then there's a bug in our code. If it doesn't help, could you possibly > check for any warnings on the command line when you run it. The code looks > absolutely fine to me, so I'm not sure why it's not working. > > -- > .''`. Mark Howard > : :' : > `. `' http://www.tildemh.com > `- mh...@de... | mh...@ti... > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer > |