Re: [Java-gnome-developer] error defining signals with glade
Brought to you by:
afcowie
From: Keith I. <ke...@ke...> - 2005-05-27 21:20:00
|
On Fri, 2005-05-27 at 22:58 +0200, Ol=C3=A1h G=C3=A1bor wrote: > hiya, > i am trying to write a simple app using java-gnome and glade, but i > receive an error whenever i try to define a signal for a button in > glade. Do you think it's related to: http://bugzilla.gnome.org/show_bug.cgi?id=3D305620 which I posted today? Seems that only some of the signals have the problem, or is it all of them in your experience? Keith > the error says: > java.lang.reflect.InvocationTargetException: ListenerDelegate.create > failure >=20 > i receive this with sun's javavm 1.5 and gij-4, and i receive this for > each signal i have defined... >=20 > anyway, i am on ubuntu hoary, versions libgtk2-java/libglade-java: > 2.8.3-2 >=20 > Sourcecode: >=20 > public class HotplugManager { >=20 > LibGlade glade; > =09 > public HotplugManager() throws GladeXMLException,=20 > FileNotFoundException,=20 > IOException { > glade =3D new LibGlade("data/hotplugmanager.glade", this); > } > =09 > public static void main(String[] args) { > =09 > HotplugManager hotplugman; > =09 > Gtk.init(args); > try { > hotplugman =3D new HotplugManager(); > } catch(Exception e) { > e.printStackTrace(); > } > Gtk.main(); > =09 > } > } >=20 > as you can see, i am not trying to catch the signal it is only defined > in the glade file:=20 > <widget class=3D"GtkButton" id=3D"button_execute"> > <property name=3D"visible">True</property> > <property name=3D"can_default">True</property> > <property name=3D"can_focus">True</property> > <property name=3D"label">gtk-execute</property> > <property name=3D"use_stock">True</property> > <property name=3D"relief">GTK_RELIEF_NORMAL</property> > <property name=3D"focus_on_click">True</property> > <signal name=3D"clicked" handler=3D"on_button_execute_clicked" > last_modification_time=3D"Fri, 27 May 2005 20:56:57 GMT"/> > </widget> >=20 > does anyone have any ideas?=20 > thanks in advance > cheers > gaboro >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This SF.Net email is sponsored by Yahoo. > Introducing Yahoo! Search Developer Network - Create apps using Yahoo! > Search APIs Find out how you can build Yahoo! directly into your own > Applications - visit http://developer.yahoo.net/?fr=3Doffad-ysdn-ostg-q= 22005 > _______________________________________________ > java-gnome-developer mailing list > jav...@li... > https://lists.sourceforge.net/lists/listinfo/java-gnome-developer |