RE: [Java-gnome-developer] ImageMenuItem without a stockid
Brought to you by:
afcowie
From: Jeffrey M. <Jef...@Br...> - 2004-10-25 12:41:09
|
This is a current limitation of the bindings. The gtk library has methods to set and get an Image. Please open a bug against the bindings. We will be starting our 2.9 development effort in the next week or so and I can quickly add this capability. If you want the feature now you can just past the following code into the ImageMenuItem.java file above the declaration of the native methods. public void setImage(Image image) { gtk_image_menu_item_set_image(getHandle(), image.getHandle()); } public Image getImage() { int hndl = gtk_image_menu_item_get_image(getHandle()); if (hndl > 0) return new Image(hndl); return null; } -Jeff > -----Original Message----- > From: jav...@li... > [mailto:jav...@li...]On Behalf Of > Laurent Martelli > Sent: Sunday, October 24, 2004 11:53 AM > To: jav...@li... > Subject: [Java-gnome-developer] ImageMenuItem without a stockid > > > Hello, > > I can't find a way to create an ImageMenuItem with an image of my > own. Is it a current limitation or did I miss something in the docs ? > > -- > Laurent Martelli > la...@ao... Java Aspect > Components > http://www.aopsys.com/ > http://jac.objectweb.org > > > > ------------------------------------------------------- > 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 > NOTE: THIS IS A CONFIDENTIAL COMMUNICATION. This transmission is intended only for the use of the individuals or entity to which it is addressed. If you are not the intended recipient, or the person responsible for delivering the message to the intended recipient, please return or delete it immediately. Although this e-mail and any attachments are believed to be free of any virus or other defect, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by us for any loss or damage arising in any way from its unauthorized modification or use. |