Dear Friends,<br><br>Thank you very much for pointing me to the right direction. Checking the related keys in gconf-editor made the stock icons appear in pygtk applications.<br><br>Have a nice day,<br>Timothy<br><br><div class="gmail_quote">
On Wed, Nov 4, 2009 at 1:33 PM, Pietro Battiston <span dir="ltr"><<a href="mailto:toobaz@email.it">toobaz@email.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Il giorno mer, 04/11/2009 alle 12.16 +0100, Timo ha scritto:<br>
<div class="im">> Search a bit in gconf-editor. There is a key you can set back to True to<br>
> let the stock icons show.<br>
<br>
</div>/desktop/gnome/interface/{buttons_have_icons,menus_have_icons}<br>
<br>
Pietro<br>
<br>
<br>
--------------------------------------------------------------------------<br>
<br>
This email would probably have arrived sooner if "reply" replied to the<br>
mailing list I'm replying to.<br>
<div><div></div><div class="h5"><br>
<br>
<br>
<br>
><br>
> Timo<br>
><br>
><br>
> Timothy Ulusoy schreef:<br>
> > Then this is a case of "it's not a bug, it's a feature!"<br>
> ><br>
> > Is there any document relating to this decision of the developers,<br>
> > that you can direct me to?<br>
> ><br>
> > Thanks a lot.<br>
> ><br>
> > On Tue, Nov 3, 2009 at 10:23 PM, Marco Antonio Islas Cruz<br>
> > <<a href="mailto:markuz@islascruz.org">markuz@islascruz.org</a> <mailto:<a href="mailto:markuz@islascruz.org">markuz@islascruz.org</a>>> wrote:<br>
> ><br>
> > Actually it is not a problem, developers wanted to behave like that.<br>
> ><br>
> > On Tue, 2009-11-03 at 22:08 +0200, Timothy Ulusoy wrote:<br>
> > > Thank you Marco,<br>
> > ><br>
> > > Now at least I know that it is a general problem, and it is not only<br>
> > > my system that fails. :)<br>
> > ><br>
> > ><br>
> > ><br>
> > > On Tue, Nov 3, 2009 at 9:56 PM, Marco Antonio Islas Cruz<br>
> > > <<a href="mailto:markuz@islascruz.org">markuz@islascruz.org</a> <mailto:<a href="mailto:markuz@islascruz.org">markuz@islascruz.org</a>>> wrote:<br>
> > > On karmic, I can't remember if it is because of Gtk+ or<br>
> > GNOME<br>
> > > there are<br>
> > > no icons in stock buttons. You must use a custom button<br>
> > (with<br>
> > > a hbox for<br>
> > > example) with a gtk.Image and a gtk.Label.<br>
> > ><br>
> > ><br>
> > ><br>
> > > On Tue, 2009-11-03 at 21:03 +0200, Timothy Ulusoy wrote:<br>
> > > > Hello,<br>
> > > ><br>
> > > > I have a problem with stock items. When I try to show a<br>
> > > button with<br>
> > > > stock icon, I only see the text. For example, the<br>
> > following<br>
> > > code from<br>
> > > > Zetcode website only gives me the texts of the buttons (no<br>
> > > images):<br>
> > > ><br>
> > > > import gtk<br>
> > > ><br>
> > > > class PyApp(gtk.Window):<br>
> > > > def __init__(self):<br>
> > > > super(PyApp, self).__init__()<br>
> > > ><br>
> > > > self.set_title("Buttons")<br>
> > > > self.set_size_request(250, 200)<br>
> > > ><br>
> > > > self.set_position(gtk.WIN_POS_CENTER)<br>
> > > ><br>
> > > > btn1 = gtk.Button("Button")<br>
> > > > btn1.set_sensitive(False)<br>
> > > > btn2 = gtk.Button("Button")<br>
> > > > btn3 = gtk.Button(stock=gtk.STOCK_CLOSE)<br>
> > > ><br>
> > > > btn4 = gtk.Button("Button")<br>
> > > > btn4.set_size_request(80, 40)<br>
> > > ><br>
> > > > fixed = gtk.Fixed()<br>
> > > ><br>
> > > > fixed.put(btn1, 20, 30)<br>
> > > > fixed.put(btn2, 100, 30)<br>
> > > > fixed.put(btn3, 20, 80)<br>
> > > ><br>
> > > > fixed.put(btn4, 100, 80)<br>
> > > ><br>
> > > > self.connect("destroy", gtk.main_quit)<br>
> > > ><br>
> > > > self.add(fixed)<br>
> > > > self.show_all()<br>
> > > ><br>
> > > ><br>
> > > > PyApp()<br>
> > > > gtk.main()<br>
> > > ><br>
> > > > I'm running Ubuntu Karmic Koala. Thinking that this may be<br>
> > > related to<br>
> > > > the GTK theme I use (Human theme), I tried the other<br>
> > themes,<br>
> > > but to no<br>
> > > > avail. Any comments will be much appreciated.<br>
> > > ><br>
> > > > Thanks.<br>
> > > > Timothy<br>
> > ><br>
> > > > _______________________________________________<br>
> > > > pygtk mailing list <a href="mailto:pygtk@daa.com.au">pygtk@daa.com.au</a><br>
> > <mailto:<a href="mailto:pygtk@daa.com.au">pygtk@daa.com.au</a>><br>
> > > > <a href="http://www.daa.com.au/mailman/listinfo/pygtk" target="_blank">http://www.daa.com.au/mailman/listinfo/pygtk</a><br>
> > > > Read the PyGTK FAQ: <a href="http://faq.pygtk.org/" target="_blank">http://faq.pygtk.org/</a><br>
> > ><br>
> > ><br>
> > > --<br>
> > > <--Linux... Because I'm Free--><br>
> > > Marco Antonio Islas Cruz<br>
> > > "Markuz"<br>
> > > Linux User #280229<br>
> > > <a href="mailto:markuz@islascruz.org">markuz@islascruz.org</a> <mailto:<a href="mailto:markuz@islascruz.org">markuz@islascruz.org</a>><br>
> > > <a href="mailto:markuz@unixmexico.org">markuz@unixmexico.org</a> <mailto:<a href="mailto:markuz@unixmexico.org">markuz@unixmexico.org</a>><br>
> > > <a href="mailto:markuz@linuxpozarica.com">markuz@linuxpozarica.com</a> <mailto:<a href="mailto:markuz@linuxpozarica.com">markuz@linuxpozarica.com</a>><br>
> > > <a href="mailto:marco.islas@gmail.com">marco.islas@gmail.com</a> <mailto:<a href="mailto:marco.islas@gmail.com">marco.islas@gmail.com</a>><br>
> > > <a href="mailto:islacruz@yahoo.com">islacruz@yahoo.com</a> <mailto:<a href="mailto:islacruz@yahoo.com">islacruz@yahoo.com</a>><br>
> > > <a href="http://www.islascruz.org" target="_blank">http://www.islascruz.org</a><br>
> > > <a href="http://wwww.christine-project.org" target="_blank">http://wwww.christine-project.org</a><br>
> > > <a href="http://www.linuxpozarica.com" target="_blank">http://www.linuxpozarica.com</a><br>
> > ><br>
> ><br>
> ><br>
> > --<br>
> > <--Linux... Because I'm Free--><br>
> > Marco Antonio Islas Cruz<br>
> > "Markuz"<br>
> > Linux User #280229<br>
> > <a href="mailto:markuz@islascruz.org">markuz@islascruz.org</a> <mailto:<a href="mailto:markuz@islascruz.org">markuz@islascruz.org</a>><br>
> > <a href="mailto:markuz@unixmexico.org">markuz@unixmexico.org</a> <mailto:<a href="mailto:markuz@unixmexico.org">markuz@unixmexico.org</a>><br>
> > <a href="mailto:markuz@linuxpozarica.com">markuz@linuxpozarica.com</a> <mailto:<a href="mailto:markuz@linuxpozarica.com">markuz@linuxpozarica.com</a>><br>
> > <a href="mailto:marco.islas@gmail.com">marco.islas@gmail.com</a> <mailto:<a href="mailto:marco.islas@gmail.com">marco.islas@gmail.com</a>><br>
> > <a href="mailto:islacruz@yahoo.com">islacruz@yahoo.com</a> <mailto:<a href="mailto:islacruz@yahoo.com">islacruz@yahoo.com</a>><br>
> > <a href="http://www.islascruz.org" target="_blank">http://www.islascruz.org</a><br>
> > <a href="http://wwww.christine-project.org" target="_blank">http://wwww.christine-project.org</a><br>
> > <a href="http://www.linuxpozarica.com" target="_blank">http://www.linuxpozarica.com</a><br>
> ><br>
> ><br>
> > ------------------------------------------------------------------------<br>
> ><br>
> > _______________________________________________<br>
> > pygtk mailing list <a href="mailto:pygtk@daa.com.au">pygtk@daa.com.au</a><br>
> > <a href="http://www.daa.com.au/mailman/listinfo/pygtk" target="_blank">http://www.daa.com.au/mailman/listinfo/pygtk</a><br>
> > Read the PyGTK FAQ: <a href="http://faq.pygtk.org/" target="_blank">http://faq.pygtk.org/</a><br>
><br>
> _______________________________________________<br>
> pygtk mailing list <a href="mailto:pygtk@daa.com.au">pygtk@daa.com.au</a><br>
> <a href="http://www.daa.com.au/mailman/listinfo/pygtk" target="_blank">http://www.daa.com.au/mailman/listinfo/pygtk</a><br>
> Read the PyGTK FAQ: <a href="http://faq.pygtk.org/" target="_blank">http://faq.pygtk.org/</a><br>
<br>
<br>
_______________________________________________<br>
pygtk mailing list <a href="mailto:pygtk@daa.com.au">pygtk@daa.com.au</a><br>
<a href="http://www.daa.com.au/mailman/listinfo/pygtk" target="_blank">http://www.daa.com.au/mailman/listinfo/pygtk</a><br>
Read the PyGTK FAQ: <a href="http://faq.pygtk.org/" target="_blank">http://faq.pygtk.org/</a><br>
</div></div></blockquote></div><br>