<ui>
  <menubar>
    <menu name="FileMenu" action="StockFileMenu">
      <menuitem name="Connect" action="Connect"/>
      <separator />
      <menuitem name="Quit" action="Quit"/>
    </menu>
    <menu name="EditMenu" action="StockEditMenu">
      <menuitem name="Cut" action="Cut"/>
      <menuitem name="Copy" action="Copy"/>
      <menuitem name="Paste" action="Paste"/>
      <menuitem name="PasteWithLinefeedsCut" action="PasteWithLinefeedsCut"/>
      <menuitem name="Clear" action="Clear"/>
      <separator />
      <menuitem name="ToggleCommandMode" action="ToggleCommandMode"/>
      <separator />
      <menuitem name="Find" action="Find"/>
      <menuitem name="FindAgain" action="FindAgain"/>
      <menuitem name="JumpToPreviousKeyword" action="JumpToPreviousKeyword" />
      <menuitem name="JumpToNextKeyword" action="JumpToNextKeyword" />
    </menu>
    <menu name="AccountMenu" action="StockAccountMenu">
      <menuitem name="ConnectCurrentAccount" action="ConnectCurrentAccount"/>
      <menuitem name="CancelPendingReconnectingCurrentAccount" action="CancelPendingReconnectingCurrentAccount" />
      <menuitem name="ReconnectCurrentAccount" action="ReconnectCurrentAccount"/>
      <menuitem name="DisconnectCurrentAccount" action="DisconnectCurrentAccount"/>
      <menuitem name="TerminateCurrentAccount" action="TerminateCurrentAccount"/>
      <separator />
      <menuitem name="ChangeNick" action="ChangeNick"/>
    </menu>
    <menu name="ChannelMenu" action="StockChannelMenu">
      <menuitem name="Join" action="Join"/>
      <separator/>
      <menuitem name="JoinCurrentChannel" action="JoinCurrentChannel"/>
      <menuitem name="Part" action="Part"/>
      <menuitem name="CloseChannel" action="CloseChannel"/>
      <separator/>
      <menuitem name="SetTopic" action="SetTopic"/>
      <menuitem name="Refresh" action="Refresh"/>
    </menu>
    <menu name="UserMenu" action="StockUserMenu">
      <menuitem name="StartPrivateTalk" action="StartPrivateTalk"/>
      <menuitem name="EndPrivateTalk" action="EndPrivateTalk"/>
    </menu>
    <menu name="ViewMenu" action="StockViewMenu">
      <menuitem name="ToggleChannelbar" action="ToggleChannelbar"/>
      <menuitem name="ToggleStatusbar" action="ToggleStatusbar"/>
      <separator/>
      <menuitem name="ToggleScroll" action="ToggleScroll"/>
      <menuitem name="ToggleScrollCommonBuffer" action="ToggleScrollCommonBuffer"/>
      <separator/>
      <menu name="NickListSortTypeMenu" action="StockNickListSortTypeMenu">
        <menuitem name="RadioNickListSortNone" action="RadioNickListSortNone" />
	<menuitem name="RadioNickListSortNick" action="RadioNickListSortNick" />
	<menuitem name="RadioNickListSortPowerNick" action="RadioNickListSortPowerNick" />
	<menuitem name="RadioNickListSortAwayNick" action="RadioNickListSortAwayNick" />
	<menuitem name="RadioNickListSortPowerAwayNick" action="RadioNickListSortPowerAwayNick" />
	<menuitem name="RadioNickListSortAwayPowerNick" action="RadioNickListSortAwayPowerNick" />
	<menuitem name="RadioNickListSortTimeNick" action="RadioNickListSortTimeNick" />
	<menuitem name="RadioNickListSortTimeAwayPowerNick" action="RadioNickListSortTimeAwayPowerNick" />
	<menuitem name="RadioNickListSortTimePowerAwayNick" action="RadioNickListSortTimePowerAwayNick" />
      </menu>
      <separator/>
      <menuitem name="ShowTransferWindow" action="ShowTransferWindow" />
    </menu>
    <menu name="Buffers" action="StockBuffersMenu">
      <menuitem name="PreviousUnreadChannel" action="PreviousUnreadChannel"/>
      <menuitem name="NextUnreadChannel" action="NextUnreadChannel"/>
      <menuitem name="PreviousChannel" action="PreviousChannel"/>
      <menuitem name="NextChannel" action="NextChannel"/>
      <menuitem name="SelectBuffer" action="SelectBuffer" />
      <separator/>
      <menuitem name="ClearAllUnreadFlags" action="ClearAllUnreadFlags" />
      <separator/>
    </menu>
    <menu name="SettingsMenu" action="StockSettingsMenu">
      <menuitem name="GeneralSettings" action="GeneralSettings"/>
      <menuitem name="AccountSettings" action="AccountSettings"/>
    </menu>
    <menu name="HelpMenu" action="StockHelpMenu">
      <menuitem name="About" action="About"/>
    </menu>
  </menubar>

  <popup name="NickListPopup" action="FakeToplevel">
    <menuitem name="StartPrivateTalkSelected" action="StartPrivateTalkSelected"/>
    <menuitem name="WhoisSelected" action="WhoisSelected"/>
    <menu name="ModeMenu" action="StockModeMenu">
      <menuitem name="GiveOpSelected" action="GiveOpSelected"/>
      <menuitem name="GiveVoiceSelected" action="GiveVoiceSelected"/>
      <separator/>
      <menuitem name="DepriveOpSelected" action="DepriveOpSelected"/>
      <menuitem name="DepriveVoiceSelected" action="DepriveVoiceSelected"/>
    </menu>
    <menu name="CTCPMenu" action="StockCTCPMenu">
      <menuitem name="CTCPVersionSelected" action="CTCPVersionSelected"/>
      <menuitem name="CTCPClientinfoSelected" action="CTCPClientinfoSelected"/>
      <menuitem name="CTCPUserinfoSelected" action="CTCPUserinfoSelected"/>
      <menuitem name="CTCPPingSelected" action="CTCPPingSelected"/>
      <menuitem name="CTCPTimeSelected" action="CTCPTimeSelected"/>
      <menuitem name="CTCPFingerSelected" action="CTCPFingerSelected"/>
    </menu>
      <menu name="NickListSortTypeMenu" action="StockNickListSortTypeMenu">
        <menuitem name="RadioNickListSortNone" action="RadioNickListSortNone" />
	<menuitem name="RadioNickListSortNick" action="RadioNickListSortNick" />
	<menuitem name="RadioNickListSortPowerNick" action="RadioNickListSortPowerNick" />
	<menuitem name="RadioNickListSortAwayNick" action="RadioNickListSortAwayNick" />
	<menuitem name="RadioNickListSortPowerAwayNick" action="RadioNickListSortPowerAwayNick" />
	<menuitem name="RadioNickListSortAwayPowerNick" action="RadioNickListSortAwayPowerNick" />
	<menuitem name="RadioNickListSortTimeNick" action="RadioNickListSortTimeNick" />
	<menuitem name="RadioNickListSortTimeAwayPowerNick" action="RadioNickListSortTimeAwayPowerNick" />
	<menuitem name="RadioNickListSortTimePowerAwayNick" action="RadioNickListSortTimePowerAwayNick" />
      </menu>
  </popup>

  <popup name="ChannelListPopup" action="StockChannelEntry">
  </popup>

  <popup name="AccountPopup" action="AccountPopup">
    <menuitem name="ConnectCurrentAccount" action="ConnectCurrentAccount"/>
    <menuitem name="CancelPendingReconnectingCurrentAccount" action="CancelPendingReconnectingCurrentAccount" />
    <menuitem name="ReconnectCurrentAccount" action="ReconnectCurrentAccount"/>
    <menuitem name="DisconnectCurrentAccount" action="DisconnectCurrentAccount"/>
    <menuitem name="TerminateCurrentAccount" action="TerminateCurrentAccount"/>
    <separator />
    <menuitem name="ChangeNick" action="ChangeNick"/>
    <separator />	
    <menuitem name="Join" action="Join"/>
    <menuitem name="StartPrivateTalk" action="StartPrivateTalk"/>
  </popup>

  <popup name="ChannelPopup" action="ChannelPopup">
     <menuitem name="JoinCurrentChannel" action="JoinCurrentChannel"/>
     <menuitem name="Part" action="Part"/>
     <menuitem name="CloseChannel" action="CloseChannel"/>
     <separator/>
     <menuitem name="SetTopic" action="SetTopic"/>
     <menuitem name="Refresh" action="Refresh"/>
  </popup>

  <popup name="PrivateTalkPopup" action="PrivateTalkPopup">
    <menuitem name="EndPrivateTalk" action="EndPrivateTalk"/>
  </popup>

  <popup name="TrayIconPopup" action="TrayIconPopup">
    <menuitem name="Connect" action="Connect"/>
    <separator/>
    <menu name="BuffersMenu" action="StockTrayIconPopupBuffers">
    </menu>
    <separator/>
    <menuitem name="Quit" action="Quit"/>
    <separator/>
    <menuitem name="About" action="About"/>
  </popup>
</ui>
