General :  K-Meleon Web Browser Forum
General discussion about K-Meleon 
Extra shortcuts in tool bar menus.
Posted by: caktus
Date: April 06, 2010 08:22AM

RE: KM 1.5.4

In many cases there are double tool bar menu shortcuts in my installation of 1.5.4 e.g. the Tools menu has two shortcuts for "Mail And News". There is only one "!MailNews" in the Menus.cfg file and when I comment it out, both
"Mail And News" shortcuts are removed from the
Tools menu. There are many such problems in the tool bar menus. How can I remove only the "extra" tool bar menu shortcuts?

Click here for an example of double shortcuts in my Tools menu. Sorry all I could give is the link but I can't remember how to insert an image or file from an image host or my computer to save my life and the BB Code stuff doesn't seem to work for me either.:s

Here is my menus.cfg file:


# K-Meleon Menus

(http://kmeleon.sourceforge.net/wiki/index.php?id=ConfigFiles#men

us)

# Syntax:
# <menuname>{
# <label>=<command>
# !<submenunameINLINE>
# :<submenunamePOPUP>
# }
#
# - Lines beginning with '#' are ignored (comments)
# - Menus must be defined BEFORE being used as submenus


# ---------- Plugins

-----------------------------------------------------------------

------------------------------

# ----- Bookmarks

%ifplugin bookmarks
&Bookmarks{
&Add Page=bookmarks(Add)
&Edit...=bookmarks(Edit)
Se&ttings...=bookmarks(Config)
-
bookmarks()
}
%endif

# ----- Favorites

%ifplugin favorites
F&avorites{
&Add Page=favorites(Add)
&Edit...=favorites(Edit)
Se&ttings...=favorites(Config)
-
favorites()
}
%endif

# ----- Hotlist

%ifplugin hotlist
H&otlist{
&Add Page=hotlist(Add)
&Edit...=hotlist(Edit)
Se&ttings...=hotlist(Config)
-
hotlist()
}
%endif

# ----- Fullscreen

kFullscreen{
%ifplugin fullscreen
Fu&ll Screen=fullscreen()
%endif
}

# ----- History

%ifplugin history
Histor&y{
View &History=history(View)
&Clear History=privacy(ClearHistory)
Se&ttings...=history(Config)
history()
}
%endif

# ----- Tabs/Windows

%ifplugin tabs
CloseTab{
C&lose Tab=ID_CLOSE_TAB
Close All Ta&bs=ID_CLOSE_ALLTAB
Close Ot&her Tabs=ID_CLOSE_ALLOTHERTAB
%ifplugin sessions
&Undo Last Closed=sessions(Undo)
%endif
}
NavTab{
N&ext Tab=ID_TAB_NEXT
Previ&ous Tab=ID_TAB_PREV
Previously Sele&cted Tab=ID_TAB_LAST
}
T&abs{
@TabList
}
%endif
&Windows{
@WindowList
}

# ----- Macros

MailNews{
}
Misc{
}
Settings{
}

# ----- Privacy

%ifplugin privacy
&Clear Data{
Clear C&ache=privacy(ClearCache)
Clear &Cookies=privacy(ClearCookies)
Clear Pass&words=privacy(ClearSignon)
Clear &History=privacy(ClearHistory)
Clear &URL Bar History=privacy(ClearMRU)
-
Clear Au&tomatically...=privacy(Config)
}
%endif

# ----- Sessions

%ifplugin sessions
&Load Session{
sessions()
}
&Sessions{
&Save Session=sessions(Save)
&Undo Last Closed=sessions(Undo)
&Options...=sessions(Config)
-
:&Load Session
}
%endif

# ---------- Toolbars

-----------------------------------------------------------------

-----------------------------

Tool&bars{
@Toolbars
-
Loc&k Toolbars=ID_TOOLBARS_LOCK
}
Toolbars{
:Tool&bars
&Status Bar=ID_VIEW_STATUS_BAR
}

# ----- Main Bar

Print{
&Print...=ID_FILE_PRINT
Print Pre&view=ID_FILE_PRINTPREVIEW
Page Set&up=ID_FILE_PRINTSETUP
#bmpmenu()
}

# ----- Tab/Window Buttons

Prev{
%ifplugin tabs
Previ&ous Tab=ID_TAB_PREV
Previously Sele&cted Tab=ID_TAB_LAST
@TabList
-
%endif
Pre&vious Window=ID_WINDOW_PREV
@WindowList
#bmpmenu()
}

Next{
%ifplugin tabs
N&ext Tab=ID_TAB_NEXT
@TabList
-
%endif
Ne&xt Window=ID_WINDOW_NEXT
@WindowList
#bmpmenu()
}

New{
%ifplugin tabs
New &Tab=ID_NEW_TAB
%endif
&New Window=ID_NEW_BROWSER
#bmpmenu()
}

CloseWindow{
&Close Window=ID_FILE_CLOSE
Exit &K-Meleon=ID_APP_EXIT
}
Close{
%ifplugin tabs
!CloseTab
%endif
!CloseWindow
#bmpmenu()
}

# ---------- Main Menu

-----------------------------------------------------------------

----------------------------

# ----- File

Network{
Work O&ffline=ID_OFFLINE
}
NavWindow{
Ne&xt Window=ID_WINDOW_NEXT
Pre&vious Window=ID_WINDOW_PREV
}
OpenSave{
&Open...=ID_FILE_OPEN
&Save Page As...=ID_FILE_SAVE_AS
}
&File{
!New
!NavWindow
!OpenSave
!Print
!Network
!Close
}

# ----- Edit

Edit{
Cu&t=ID_EDIT_CUT
&Copy=ID_EDIT_COPY
&Paste=ID_EDIT_PASTE
&Delete=ID_EDIT_CLEAR
}
EditHistory{
&Undo=ID_EDIT_UNDO
&Redo=ID_EDIT_REDO
}
Find{
&Find In Page=ID_EDIT_FIND
Find Ne&xt=ID_EDIT_FINDNEXT
Find Pre&vious=ID_EDIT_FINDPREV
}
Preferences{
&Manage Profiles...=ID_MANAGE_PROFILES
Pr&eferences=ID_PREFERENCES
}
Select{
Select &All=ID_EDIT_SELECT_ALL
}
&Edit{
!EditHistory
!Edit
!Select
!Find
!Preferences
}

# ----- View

Nav{
Bac&k=ID_NAV_BACK
For&ward=ID_NAV_FORWARD
S&top=ID_NAV_STOP
&Reload=ID_NAV_RELOAD
&Force Reload=ID_NAV_FORCE_RELOAD
}
NavEx{
Open &Home Page=ID_NAV_HOME
%ifplugin history
:Histor&y
%endif
%ifplugin tabs
:T&abs
%endif
:&Windows
}
PageDisplay{
Zoom In &Text=ID_FONT_INCREASE
Zoom Out T&ext=ID_FONT_DECREASE
}

Frame &Properties{
&Background Image=ID_VIEW_IMAGE
So&urce Code=ID_VIEW_FRAME_SOURCE
Cache &Information=ID_VIEW_FRAME_INFO
}
Page &Properties{
&Background Image=ID_VIEW_IMAGE
So&urce Code=ID_VIEW_SOURCE
Cache &Information=ID_VIEW_PAGE_INFO
}
Page Pro&perties{
So&urce Code=ID_VIEW_SOURCE
Cache &Information=ID_VIEW_PAGE_INFO
}

&View{
!Toolbars
!Nav
!NavEx
!PageDisplay
!Page Pro&perties
!kFullscreen
}

# ----- Tools

P&ermissions{
Co&okies=ID_COOKIE_PERM
&Popups=ID_POPUP_PERM
Im&ages=ID_IMAGE_PERM
}
Vie&w Data{
View Co&okies=ID_COOKIES_VIEWER
View &Passwords=ID_PASSWORDS_VIEWER
View &History=history(View)
}
PrivateData{
:Vie&w Data
%ifplugin privacy
:&Clear Data
%endif
}
&Privacy{
tongue sticking out smiley&ermissions
!PrivateData
}
PrivacySecurity{
:&Privacy
}

WebServices{
&Web Search=ID_NAV_SEARCH
}

&Tools{
!MailNews
!WebServices
!PrivacySecurity
!Settings
!Misc
}

# ----- Help

KMAbout{
About &Plugins=ID_LINK_ABOUT_PLUGINS
About &K-Meleon=ID_APP_ABOUT
}
KMDocs{
&User's Guide=ID_LINK_KMELEON_MANUAL
&FAQ=ID_LINK_KMELEON_FAQ
}
KMForums{
K-Meleon &Forums=ID_LINK_KMELEON_FORUM
}
KMHome{
K-Meleon &Home=ID_LINK_KMELEON_HOME
}

&Help{
!KMHome
!KMForums
!KMDocs
!KMAbout
}

# ----- Main

Main{
:&File
:&Edit
:&View
%ifplugin bookmarks
:&Bookmarks
%endif
%ifplugin favorites
:F&avorites
%endif
%ifplugin hotlist
:H&otlist
%endif
%ifplugin sessions
:&Sessions
%endif
:&Tools
:&Help
bmpmenu(top)
}

Compact Menu{
!Main
}

# ---------- Context Menus

-----------------------------------------------------------------

------------------------

# ----- Tabs

%ifplugin tabs
TabButtonPopup{
!New
!CloseTab
!NavTab
-
:T&abs
}
%endif

# ----- Document Elements

DocumentOpenExternal{
}
DocumentSave{
Add Page To &Bookmarks=bookmarks(Add)
Add Page To F&avorites=favorites(Add)
Add Page To H&otlist=hotlist(Add)
&Save Page As...=ID_FILE_SAVE_AS
}
Document{
!Nav
!DocumentOpenExternal
!DocumentSave
}

FrameOpen{
%ifplugin tabs
Open In Ne&w Tab=ID_OPEN_FRAME_IN_NEW_TAB
Open In Bac&kground Tab=ID_OPEN_FRAME_IN_BACKGROUNDTAB
%endif
Open In &New Window=ID_OPEN_FRAME_IN_NEW_WINDOW
Open In Backgro&und Window=ID_OPEN_FRAME_IN_BACKGROUND
}
FrameProperties{
:Frame &Properties
}
FrameSave{
&Save Frame As...=ID_FILE_SAVE_FRAME_AS
}
FrameView{
Show &Only This Frame=ID_OPEN_FRAME
}
&Frame{
!FrameView
!FrameOpen
!FrameSave
!FrameProperties
}

LinkCopy{
&Copy Link URL=ID_COPY_LINK_LOCATION
}
LinkOpen{
%ifplugin tabs
Open In Ne&w Tab=ID_OPEN_LINK_IN_NEW_TAB
Open In Bac&kground Tab=ID_OPEN_LINK_IN_BACKGROUNDTAB
-
%endif
Open In &New Window=ID_OPEN_LINK_IN_NEW_WINDOW
Open In Backgro&und Window=ID_OPEN_LINK_IN_BACKGROUND
}
LinkOpenExternal{
}
LinkProperties{
}
LinkSave{
Add Link To &Bookmarks=bookmarks(AddLink)
Add Link To F&avorites=favorites(AddLink)
Add Link To H&otlist=hotlist(AddLink)
&Save Link Target As...=ID_SAVE_LINK_AS
}
Link{
!LinkOpen
!LinkOpenExternal
!LinkSave
!LinkCopy
!LinkProperties
}

ImageCopy{
C&opy Image=ID_COPY_IMAGE_CONTENT
&Copy Image URL=ID_COPY_IMAGE_LOCATION
}
ImageOpenExternal{
}
ImageProperties{
}
ImageSave{
&Save Image As...=ID_SAVE_IMAGE_AS
}
ImageView{
&View Image=ID_VIEW_IMAGE
}
I&mage{
!ImageView
!ImageOpenExternal
!ImageSave
!ImageCopy
!ImageProperties
}

Selection{
}

# ----- Documents

DocumentPopup{
!Document
-
tongue sticking out smileyage &Properties
!kFullscreen
bmpmenu()
}
DocumentImagePopup{
!DocumentPopup
}

FrameDocumentPopup{
!Document
-
tongue sticking out smileyage Pro&perties
:&Frame
!kFullscreen
bmpmenu()
}
FrameDocumentImagePopup{
!FrameDocumentPopup
}

# ----- Links

LinkPopup{
!Link
bmpmenu()
}
ImageLinkPopup{
!Link
:I&mage
bmpmenu()
}
FrameLinkPopup{
!Link
:&Frame
bmpmenu()
}
FrameImageLinkPopup{
!Link
:I&mage
:&Frame
bmpmenu()
}

# ----- Images

ImagePopup{
!I&mage
bmpmenu()
}
FrameImagePopup{
!I&mage
:&Frame
bmpmenu()
}

# ----- Text

TextPopup{
!EditHistory
-
&Paste=ID_EDIT_PASTE
!Select
bmpmenu()
}
FrameTextPopup{
!TextPopup
}

# ----- Selected Text

SelectedText{
!Edit
!Select
!Selection
}


Thank you.

Charlie

~~If it ain't broke, why screw it up?~~




Edited 1 time(s). Last edit at 04/06/2010 08:25AM by caktus.

Options: ReplyQuote
Re: Extra shortcuts in tool bar menus.
Posted by: SoerenB
Date: April 06, 2010 01:27PM

Hi, caktus,

that is nothing to be solved from the *.cfgs - been messin' 'round with
the macros, lately?

To me this looks like you're having surplus *.kmm files in your macro folder(s).

Scenario 1: If you made backups of "search", "accelerators", "mail", and
"translate" -.kmm, naming them, e.g.:

"search.old.kmm", instead of
"search.kmm.old"

those are valid kmm's now, writing THEIR menu items to your browser.
Simply rename (how about mail.old.kmx?) & restart.

Scenario 2: You have copies of those files
  • in your \main\macros\ AS WELL AS
  • in your \userprofile\macros\ folders.
That gives you the same effect as above.

In this case, you may want to put those WITH THE LATER TIMESTAMP
to the \userprofile\macros\ folder and rename/remove the surplus ones.
That way you'll keep any changes you made even through your next upgrade.

If neither is the solution, make a system-wide search for "profiles.ini"
to discover straying profiles, before you come back....
That scenario is not very likely, though.

Cheers
SoerenB


Back again ...



Edited 2 time(s). Last edit at 04/06/2010 01:48PM by SoerenB.

Options: ReplyQuote
Re: Double menu entries
Posted by: siria
Date: April 06, 2010 06:21PM

Whow, just p-e-r-f-e-c-t Soeren smiling smiley
Yes, that's also my suspicion, accidentally double macros, either renamed but still .kmm at the end, or both in different folders.
BTW there's also a second menus.cfg sheet in the profile.

Must admit though that this is really confusing me:
Quote
caktus
There is only one "!MailNews" in the Menus.cfg file and when I comment it out, both "Mail And News" shortcuts are removed from the Tools menu.

Quote
caktus
Sorry all I could give is the link but I can't remember how to insert an image or file from an image host
Just look below the image, and copy the ready-made text from "BB-code" into the forum post, that's all smiling smiley

Options: ReplyQuote
Re: Extra shortcuts in tool bar menus.
Posted by: caktus
Date: April 08, 2010 09:13PM

Quote
SoerenB
Scenario 2: You have copies of those files

[*] in your \main\macros\ AS WELL AS
[*] in your \userprofile\macros\ folders.

Yep, this was the problem, alright. After downloading 1.5.4 I copied 1.5.3's User Defined Macros over to 1.5.4's User Defined Macros. Appearantly I got carried away and copied them to both 1.5.4's macro folders.

Quote
siria
Just look below the image, and copy the ready-made text from "BB-code" into the forum post, that's all smiling smiley

That's what I have been doing but for some reason I just can't seem to make it work. It seems to work alright in IE but I can't get it to work in KM 1.5.4. Seems I could always get it to work in 1.5.3. Perhaps There is just something about 1.5.4 that I am not getting right. I did have the "Support this project" icon at the bottom left hand navagation menu on this site but some how I lost it. I think I will drop back to 1.5.3 and see if I can still post images with that version.

Charlie

~~If it ain't broke, why screw it up?~~


Options: ReplyQuote
Re: Extra shortcuts in tool bar menus.
Posted by: siria
Date: April 08, 2010 11:28PM

Just copied over the code they give, no prob really in my km154 and win98.
(I did not enable js, just highlight and Ctrl+C, as usual)


Options: ReplyQuote
Re: Extra shortcuts in tool bar menus.
Posted by: caktus
Date: April 09, 2010 01:24AM

I tried these, w/o the *** of course, but they don't show up. The show up using IE, except the "Support This Project" icon is just a white square with a X. Any idea what I may be doing wrong?



[***img]http://sourceforge.net/donate/index.php?user_id=2201029[/img***]
and these from
http://www.freesmileys.org/emoticons-cartoon-001.php

[***img]http://www.freesmileys.org/emoticons/emoticon-cartoon-004.gif[/img***]
[***img]http://www.freesmileys.org/emoticons/emoticon-cartoon-006.gif[/img***]

Charlie

~~If it ain't broke, why screw it up?~~


Options: ReplyQuote


K-Meleon forum is powered by Phorum.