Improvement requests :  K-Meleon Forum
Use this forum to talk about a feature you're missing. Use the bug tracker to report it if necessary. 
Menu - Session - Icon
Posted by: newman
Date: July 19, 2010 07:50PM

In the K-meleon menu, we have File-View-Edit-Session-Tools.... I would suggest putting a "Session icon button" that does the same instead of a menu item, it just is a waste of space in the menu or put it in the Tools menu or something.

But a button would be great for EASY Access. Just my two cents.

(k-meleon is real slick)

Options: ReplyQuote
Re: Menu - Session - Icon
Posted by: SoerenB
Date: July 20, 2010 04:06AM

Hi, newman,

you can do that yourself:

(a)
go to Edit -> Configuration -> Toolbars

The toolbars.cfg file of your skin is opened in notepad.

First step: Save As - to a place you'll find easily, as a backup, in case anything goes wrong.

Second step: Try to understand that file. Read the top and the bottommost part.
Look for the order of the Bars & Buttons.
Mind the braces! There's an opening AND a closing one for every Button,
PLUS a COMMON pair enclosing ALL buttons of each toolbar.

If you end up having lost any buttons or toolbars, check for the braces first.

Third step: Now close this backup and open the original file again.

(b)
insert the following code at the place of your choice:
%ifplugin sessions
	sessions{
	sessions(Undo)|&Sessions
	Undo last closed. RightClick for Sessions Menu
	toolhot.bmp[0]		# - for the "Klassic" skin -
	toolcold.bmp[0]		# swap skin compatibility
#	mainbarhot.bmp[0]	# by swapping the leading "#"
#	mainbarcold.bmp[0]	# - for the "Aura alpha" skins
	}
%endif

Save & close toolbars.cfg, restart K-Meleon ( + the loader ...)

I used the "Back" arrows as buttons here - you could make your own.

You can replace "sessions(Undo)" by "sessions(Save)" as the leftClick action.

Cheers
SoerenB

is: I'm back, on wine in some (!) linuxes - speaking of addiction ...

was: No more own machines, because of addiction.
Don't know when I'll be back to normal ...



Edited 1 time(s). Last edit at 07/20/2010 04:08AM by SoerenB.

Options: ReplyQuote
Re: Menu - Session - Icon
Posted by: siria
Date: July 20, 2010 05:21AM

Nice! I was rather lost with an icon pic, but the back icon may not be that bad really grinning smiley
A little detail not to forget, the number of image lines (versions for hot/cold/dead state) must be the same as the neighbor buttons inside the chosen toolbar.

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

c) To remove the "Sessions" from the main menu, open
Edit > Configuration > Menus
Add this blue text (e.g. at the end):

# Little bug: Changing the MAIN menu line doesn't work here if a macro contains rebarmenu stuff
# So if this doesn't work, copy the lines below to defaults/settings/menus.cfg

!Main{
-&Sessions
}


Options: ReplyQuote
Re: Menu - Session - Icon
Posted by: desga2
Date: July 21, 2010 03:08AM

Quote
siria
c) To remove the "Sessions" from the main menu, open
Edit > Configuration > Menus
Add this blue text (e.g. at the end):

# Little bug: Changing the MAIN menu line doesn't work here if a macro contains rebarmenu stuff
# So if this doesn't work, copy the lines below to defaults/settings/menus.cfg

!Main{
-&Sessions
}

Also you can move it to other menu like Tools adding the code:

!&Tools{
:&Sessions
}

K-Meleon in Spanish



Edited 1 time(s). Last edit at 07/21/2010 03:10AM by desga2.

Options: ReplyQuote
Re: Menu - Session - Icon
Posted by: newman
Date: July 21, 2010 04:53AM

oh,

this is awesome.

Thank you SoerenB, Siria and desga2 for your replies. I have made the changes and it works just as good. I even read something similar in another post. All I need to do now is create an icon and then I should be in business. Thank you.

Options: ReplyQuote


K-Meleon forum is powered by Phorum.