[gedit-list] Custom menu-bar items.



I'm trying several things to customize Gedit. I would like new menu elements
in menu bar, for example this way (in a plugin):

# Menu item example, insert a new item in the Tools menu
ui_str = """<ui>
  <menubar name="MenuBar">
    <menu name="My_Menu" action="Tools">
      <placeholder name="My_menu_Ops_1">
        <menuitem name="ExamplePy" action="ExamplePy"/>
      </placeholder>
    </menu>
  </menubar>
</ui>
"""

This way i have an extra "Tools" menu element, but for example this:

    <menu name="My_Menu" action="Custom">

doesn't work, it looks like is possible adding new menu elements when they
have the same "action" name, but coesn't accept  diferent names.

Is possible to create custom named elements in menu bar?

Thanks.

-- 
View this message in context: http://www.nabble.com/Custom-menu-bar-items.-tp23982702p23982702.html
Sent from the Gnome - Gedit mailing list archive at Nabble.com.



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