[gedit-list] plugin developement - how to edit a panels toolbar?



Hello, the file browser plugin pane adds a item(widget) in the left panel. I want to add a icon to its toolbar pane, but my icon is showing up on the top gedit toolbar.

This is what I tried:

ui_str = """<ui>
  <toolbar name="ToolBar">
    <placeholder name="Tool_Opt3">
      <toolitem name="ExamplePy" action="">
    </placeholder>
  </toolbar>
</ui>
"""

I'm based on the file browser plugin ui description. That is:
<ui>
  <toolbar name="ToolBar">
    <placeholder name="Tool_Opt1"/>
    <separator/>
    <toolitem action="">
    <separator/>
    <placeholder name="Tool_Opt2"/>
    <separator/>
    <toolitem action="">
    <separator/>
    <placeholder name="Tool_Opt3"/>
  </toolbar>
...
</ui>

I think that if I had the same UIManager as the plugin has, I could do this job. Is it possible to access the plugin's UIManager? Is there another way to edit this toolbar?

Thanks

--
Rodrigo Lopes


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]