Modernize menus a little

A bit in preparation to gtk3 app menus.
This commit is contained in:
René Stadler 2012-08-24 02:09:04 +02:00 committed by Stefan Sauer
parent 9864042ff8
commit fb9d9ca4cf
2 changed files with 8 additions and 12 deletions

View file

@ -230,7 +230,7 @@ class Window (object):
self.actions = Common.GUI.Actions ()
group = gtk.ActionGroup ("MenuActions")
group.add_actions ([("FileMenuAction", None, _("_File")),
group.add_actions ([("AppMenuAction", None, _("_Application")),
("ViewMenuAction", None, _("_View")),
("ViewColumnsMenuAction", None, _("_Columns")),
("HelpMenuAction", None, _("_Help")),
@ -244,7 +244,7 @@ class Window (object):
("close-window", gtk.STOCK_CLOSE, _("Close _Window"), "<Ctrl>W"),
("cancel-load", gtk.STOCK_CANCEL, None,),
("clear-line-view", gtk.STOCK_CLEAR, None),
("show-about", gtk.STOCK_ABOUT, None),
("show-about", None, _("About GStreamer Debug Viewer",)),
("enlarge-text", gtk.STOCK_ZOOM_IN, _("Enlarge Text"), "<Ctrl>plus"),
("shrink-text", gtk.STOCK_ZOOM_OUT, _("Shrink Text"), "<Ctrl>minus"),
("reset-text", gtk.STOCK_ZOOM_100, _("Normal Text Size"), "<Ctrl>0")])

View file

@ -1,14 +1,14 @@
<!-- -*- mode: xml; -*- -->
<ui>
<menubar>
<menu name="FileMenu" action="FileMenuAction">
<menuitem name="FileNewWindow" action="new-window"/>
<menuitem name="FileOpen" action="open-file"/>
<menuitem name="FileReload" action="reload-file"/>
<menu name="AppMenu" action="AppMenuAction">
<menuitem name="AppNewWindow" action="new-window"/>
<menuitem name="WindowOpen" action="open-file"/>
<menuitem name="WindowReload" action="reload-file"/>
<separator/>
<placeholder name="FileMenuAdditions"/>
<menuitem name="ShowAbout" action="show-about"/>
<separator/>
<menuitem name="FileCloseWindow" action="close-window"/>
<menuitem name="WindowClose" action="close-window"/>
</menu>
<menu name="ViewMenu" action="ViewMenuAction">
<menu name="ViewColumnsMenu" action="ViewColumnsMenuAction">
@ -39,10 +39,6 @@
<menuitem name="ZoomOut" action="shrink-text"/>
<menuitem name="Zoom100" action="reset-text"/>
</menu>
<menu name="HelpMenu" action="HelpMenuAction">
<placeholder name="HelpMenuAdditions"/>
<menuitem name="HelpInfo" action="show-about"/>
</menu>
</menubar>
<menubar name="context">
<menu name="LogViewContextMenu" action="ViewMenuAction">