<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:html="http://www.w3.org/1999/html" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>Ross Burton</title><link>http://www.burtonini.com/blog</link><description>A potted account of Ross' life</description><language>en</language><ttl>60</ttl><dc:creator>Ross Burton</dc:creator><admin:generatorAgent rdf:resource="http://pyblosxom.sourceforge.net/"/><admin:errorReportsTo rdf:resource="mailto:ross@burtonini.com"/><item><title>Epiphany Requested</title><guid isPermaLink="false">computers/epiphany-2006-08-29-18-00</guid><link>http://www.burtonini.com/blog/computers/epiphany-2006-08-29-18-00</link><description>I'm trying to write an extension in Python for Epiphany that has a toolbar button, and let the user add/remove ...</description><content:encoded><![CDATA[    <p>
      I'm trying to write an extension in Python for Epiphany that has a toolbar
      button, and let the user add/remove it at will.  Now, I can add a button,
      but I can't get it to appear in the editor.  This is probably due to me
      being silly and not understanding how the editable toolbar works...
    </p>
    <p>
      I have already created an action for my extension, which is called "Post".  If I do this:
    </p>
    <pre>shell = epiphany.ephy_shell_get_default()
shell.get_toolbars_model().add_item(0, 0, "Post")</pre>
    <p>
      Then the button appears on the toolbar, and works.  I can even remove it
      from the toolbar with the editor, but if I do this I can't add it back
      again.  Does anyone understand how to add a toolbar and menu item (for the
      same action) to Epiphany from a Python extension?
    </p>]]></content:encoded><dc:date>2006-08-29T17:00:00Z</dc:date></item></channel></rss>