Hello all
I am struggling to figure a couple things out. I am sorry if those questions are stupid,
I am still very much a beginner.
I set up a Button in Glade. My label there is 'Co_nnect', and I am using an icon
('_Jump_to', the gtk one). Note that this is not a Stock Button, I am just using the
icon separately. After binding the glade xml in my code, then I do something such as:
btnConn = (Button)gladeXml.getWidget("btnConn");
System.out.println(btnConn.getLabel());
This prints 'null'. However, I can see the label on the button.
If I set the label in my code manually though a setLabel(), then getLabel() will return
the approriate result.
That button mentionned above has 3 states: Connect, Connecting, Disconnect. So I am
changing labels. While changing the text is fine, I can't seem to find how I can
re-attach an icon to the button. Any pointers greatly appreciated.
Thanks a lot :)
--
fred
|