Re: Stock Id's and Icons on buttons
On 15 December 2012 23:47, Perdie Perduta rsperd...@gmail.com wrote: Can any one help me understand how to add my own stock id's or icons to these menu buttons, preferably in Glade rather than having to code it in the software. I have some C here that adds new stock items: https://github.com/jcupitt/nip2/blob/master/src/main.c search for main_register_icons(). You're welcome to borrow any bits that look useful. John ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Stock Id's and Icons on buttons
Thanks John. I'm looking at how you registered those icons right now but haven't quite got it to work yet. Note: I had a bit of a problem copying the source from github as the copy to clipboard button doesn't work on my computer and when I select the text directly for some strange reason it deletes all the /* and */ from around each comment. I'll have to research github one day soon because I gather it's quite useful. :o) On Tue, Dec 18, 2012 at 10:47 AM, jcup...@gmail.com wrote: On 15 December 2012 23:47, Perdie Perduta rsperd...@gmail.com wrote: Can any one help me understand how to add my own stock id's or icons to these menu buttons, preferably in Glade rather than having to code it in the software. I have some C here that adds new stock items: https://github.com/jcupitt/nip2/blob/master/src/main.c search for main_register_icons(). You're welcome to borrow any bits that look useful. John ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Re: Stock Id's and Icons on buttons
Thank you very much :o) Your sample code explains how to do it very well and I hope you don't mind if I used your music.png file in my own application. I'm exploring how to use Windows Audio Session and Media Foundation API's using techniques like double buffering on multiple threads to get low latency audio sessions. Gtk adds a simple and flexible GUI. Note: Just in case any other Windows programmers want to play with these things, I've uploaded my interim source code as a zip file (but one does need the Microsoft command line tools and SDK to build it as well as GTK obviously). http://piedpiper.site40.net/MyImages.php/gtk-app-devel-list/was.zip On Mon, Dec 17, 2012 at 2:30 AM, Mariano Gaudix marianocordobar...@gmail.com wrote: You , can place an image inside of toolbutton . Es la solucion . You can also use a Menu-Popup , as alternative to Gtk MenuToolButton / 2012/12/15 Perdie Perduta rsperd...@gmail.com I'm using two GtkMenuToolButton and one is to select an audio input device and the other to select an audio output device. I can't find a suitable stock id and so at the moment just put in gtk-missing-image Can any one help me understand how to add my own stock id's or icons to these menu buttons, preferably in Glade rather than having to code it in the software. also if there are add on libraries of extra stock items on the web. Thanks in advance :o) ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
Stock Id's and Icons on buttons
I'm using two GtkMenuToolButton and one is to select an audio input device and the other to select an audio output device. I can't find a suitable stock id and so at the moment just put in gtk-missing-image Can any one help me understand how to add my own stock id's or icons to these menu buttons, preferably in Glade rather than having to code it in the software. also if there are add on libraries of extra stock items on the web. Thanks in advance :o) ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list