Hello,<div><br></div><div>I've solved the problem by writting</div><div><br></div><div>playButton = ToolButton(stock_id = gtk.STOCK_MEDIA_PLAY)</div><div><br></div><div>instead of</div><div><br></div><div>playButton = ToolButton('gtk-media-play')</div>
<div><br></div><div>Regards<br><br><div class="gmail_quote">Le 9 mars 2012 18:01, laurent bernabe <span dir="ltr"><<a href="mailto:laurent.bernabe@gmail.com">laurent.bernabe@gmail.com</a>></span> a écrit :<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello everyone,<div><br></div><div>I'm implementing the new Sugar toolbar in my application LearningWriting. I haven't done any commit yet for the problem I'm facing.</div><div><br></div><div>I wrote the line </div>
<div><br></div><div>playButton = ToolButton('gtk-media-play') #(line 99)</div><div><br></div><div>in order to add a tool button with the play icon. But the space for the button is allocated, and no icon is shown.</div>
<div><br></div><div><br></div><div>Whereas, if i replace by</div><div><br></div><div>playButton = ToolButton('gtk-media-record') #(line 99)</div><div><br></div><div>this time I can see the gtk icon for a record button.</div>
<div><br></div><div>Here is my activity code :</div><div><br></div><div><a href="http://pastebin.com/kH2Y00i4" target="_blank">http://pastebin.com/kH2Y00i4</a></div><div><br></div><div>Regards</div><div><br></div>
</blockquote></div><br></div>