Author Topic: REQ: contextmenu ids and labels  (Read 5063 times)

Offline xad

  • Normal Members
  • *
  • Posts: 3
REQ: contextmenu ids and labels
« on: May 10, 2006, 03:53:49 PM »
Please can you post the contextmenu ids and labels for passwordmaker as i'd like to manually remove the right click context menu items like i always do using:
http://forums.mozillazine.org/viewtopic.php?t=14776

Menu Editor extension causes me configurations to get messed up so i don't use that.

An option in future editons to remove the right click menu would be great, but the context menu labels should be fine.

Thanks.
« Last Edit: May 10, 2006, 03:54:16 PM by xad »

Offline Eric H. Jung

  • grimholtz
  • Administrator
  • *****
  • Posts: 3353
REQ: contextmenu ids and labels
« Reply #1 on: May 10, 2006, 05:46:08 PM »
Hello xad,

Here are the context menu ids and labels:
Code: [Select]
menu: id="passwordmaker-context-menu" label="PasswordMaker"
  menupopup: id="passwordmaker-context-menu-popup"
    menuitem: id="passwordmaker-popup" label="Populate This Field"
    menuitem: id="passwordmaker-coolkey-popup" label="CoolKey"
    menuitem: id="passwordmaker-removempw-popup" label="Clear Master Password"
    menuitem: id="passwordmaker-context-menu-open" label="Open PasswordMaker"

You might also try MenuManipulator, although I haven't tried it personally.

Offline xad

  • Normal Members
  • *
  • Posts: 3
REQ: contextmenu ids and labels
« Reply #2 on: May 10, 2006, 06:29:19 PM »
Quote from: Eric H. Jung
Hello xad,

Here are the context menu ids and labels:
Code: [Select]
menu: id="passwordmaker-context-menu" label="PasswordMaker"
  menupopup: id="passwordmaker-context-menu-popup"
    menuitem: id="passwordmaker-popup" label="Populate This Field"
    menuitem: id="passwordmaker-coolkey-popup" label="CoolKey"
    menuitem: id="passwordmaker-removempw-popup" label="Clear Master Password"
    menuitem: id="passwordmaker-context-menu-open" label="Open PasswordMaker"

You might also try MenuManipulator, although I haven't tried it personally.
I can't seem to remove the last one. In the file passwdmakerOverlay.xul it has the coding:
Quote
<popup id="contentAreaContextMenu">
     <menu label="PasswordMaker" accesskey="P" class="menu-iconic"
       image="chrome://passwdmaker/content/images/ring-16x16-enabled.png">
      <menupopup>
        <menuitem id="passwordmaker-popup" label="Populate This Field"
          accesskey="W"
          class="menuitem-iconic"
          oncommand="passwordMaker.onContextMenuClick();"
          image="chrome://passwdmaker/content/images/quill.png"/>
        <menuitem id="passwordmaker-coolkey-popup" label="CoolKey"
          accesskey="C" insertafter="passwordmaker-popup"
          class="menuitem-iconic"
          oncommand="passwordMaker.populateFields();"
          image="chrome://passwdmaker/content/images/key-16x16.png"/>
        <menuitem id="passwordmaker-removempw-popup" label="Clear Master Password"
          accesskey="C" insertafter="passwordmaker-popup"
          class="menuitem-iconic"
          oncommand="passwordMaker.setMPW(null, true);"
          image="chrome://passwdmaker/content/images/eraser.png"/>          
        <menuitem label="Open PasswordMaker"
          accesskey="O" insertafter="passwordmaker-popup"
          class="menuitem-iconic"
          oncommand="passwordMaker.open();"
          image="chrome://passwdmaker/content/images/ring-16x16-enabled.png"/>                  
      </menupopup>
    </menu>
  </popup>

All of the labels have an idea except for the Open PasswordMaker - does that have anything to do with it, or did i do something wrong? Because adding all of the label ids in the userchrome is supposed to remove them from the right click context menu.

edit: Is that specific label missing its ID? I just checked using that extension you posted, menu manipulator and it too shows that that context menu item doesn't have an ID. Did i just find a bug, or is this the way its supposed to be? Its the "Open PasswordMaker" item.
« Last Edit: May 10, 2006, 06:56:15 PM by xad »

Offline xad

  • Normal Members
  • *
  • Posts: 3
REQ: contextmenu ids and labels
« Reply #3 on: May 10, 2006, 07:15:35 PM »
Quote from: xad
I can't seem to remove the last one. In the file passwdmakerOverlay.xul it has the coding:
All of the labels have an idea except for the Open PasswordMaker - does that have anything to do with it, or did i do something wrong? Because adding all of the label ids in the userchrome is supposed to remove them from the right click context menu.

edit: Is that specific label missing its ID? I just checked using that extension you posted, menu manipulator and it too shows that that context menu item doesn't have an ID. Did i just find a bug, or is this the way its supposed to be? Its the "Open PasswordMaker" item.
ok i managed to remove it. I gave the PasswordMaker a unique new name. I'm referring to the one that falls under:
access: p
class: menu-iconic
image: chrome://passwdmaker/content/images/ring-16x16-enabled.png
label: PasswordMaker

and then i added the new unique name to my userchrome file and now its hidden just the way i wanted  

Offline Eric H. Jung

  • grimholtz
  • Administrator
  • *****
  • Posts: 3353
REQ: contextmenu ids and labels
« Reply #4 on: May 10, 2006, 10:40:28 PM »
Sorry you had trouble. I changed the code to have an id some time ago, but forgot this hasn't been released yet. It will be in the next release.
« Last Edit: May 10, 2006, 10:40:52 PM by Eric H. Jung »

PasswordMaker Forums

REQ: contextmenu ids and labels
« Reply #4 on: May 10, 2006, 10:40:28 PM »

 

anything