Epiphany Requested

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...

I have already created an action for my extension, which is called "Post". If I do this:

shell = epiphany.ephy_shell_get_default()
shell.get_toolbars_model().add_item(0, 0, "Post")

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?

18:00 Tuesday, 29 Aug 2006 [#] [computers] (3 comments)

Posted by Michi at Tue Aug 29 18:47:58 2006:
I can't help you with this but I can feel your pain... I tried to get the same working a few month ago but got nowhere and canceled my little project :(

I hope you get it working and make the results public for everyone to learn from.

Good look!
Posted by Brian at Tue Aug 29 19:26:31 2006:
The following extension successfully adds a button to the toolbar editor:
http://www.sstuhr.dk/epiphany-extensions/onlyoneclosebutton.py
Posted by Stefan Stuhr at Tue Aug 29 19:26:34 2006:
I am not sure about custom actions, but my Only One Close Button extension makes makes an existing action available for the toolbar. It is rather ugly, as it ivolves a temporary file, but it works.

You can find the Python file at http://www.sstuhr.dk/epiphany-extensions/onlyoneclosebutton.py

Name:


E-mail:


URL:


Add 1 and 2 (required):


Comment: