Development :  K-Meleon Web Browser Forum
K-Meleon development related discussions. 
A cross to close a layer? (English / francais)
Posted by: Nikelaos
Date: November 17, 2006 03:26PM

Hi everyone!

I just wanted to know if it would be possible to get a kind of cross to close a particular layer, as in Firefox 2.0? (it was also possible with the previous versions thanks to an extension plugin)

Thanks!




Bonjour tout le monde,

Je voulais savoir s'il était possible d'avoir sur le titre de chaque onglet une sorte de mini croix qui puisse permettre de fermer un onglet, comme dans Firefox 2.0 et precédentes versions?

Merci d'avance!

Options: ReplyQuote
Re: A cross to close a layer? (English / francais)
Posted by: JujuLand
Date: November 17, 2006 05:20PM

This will need a modification of layers.dll, and I don't think it's planed.

You have the Double-click which does the same.

A+



Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0


Web: http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr



Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc



Options: ReplyQuote
Re: A cross to close a layer? (English / francais)
Posted by: vpowell
Date: November 17, 2006 11:02PM

You could edit menus.cfg
( Edit -> Configuration -> Menus )
to add a close-layer (and also an open-file-or-url) context-menu item.
Edit the Nav{ menu so that the top-part looks like this:
Nav{
%ifplugin layers
layers(Close,Close Active Laye&r\tCtrl+F4)
-
%endif
&Open File or URL...\tCtrl+O=ID_FILE_OPEN
-
Bac&k\tAlt+Left=ID_NAV_BACK
For&ward\tAlt+Right=ID_NAV_FORWARD
S&top\tEsc=ID_NAV_STOP


Options: ReplyQuote
Re: A cross to close a layer? (English / francais)
Posted by: Nikelaos
Date: November 21, 2006 03:35PM

Well... if i understand the last post... it's a shorcut you want me to set?

Options: ReplyQuote
Re: A cross to close a layer? (English / francais)
Posted by: vpowell
Date: November 22, 2006 09:35AM

Actually Nikelaos, I do not know how to do what you asked.
I was trying to explain how to add new context menu items to most of the layers, which might do almost the same thing.
If you look at your menus.cfg file there is a menu called "Nav".
If you are using K-Meleon 1.0.2, the top part of the Nav menu should look something like this:
_____________________________________________
Nav{
Bac&k\tAlt+Left=ID_NAV_BACK
For&ward\tAlt+Right=ID_NAV_FORWARD
S&top\tEsc=ID_NAV_STOP
_____________________________________________

If you change the top part to look like this:
_____________________________________________
Nav{
%ifplugin layers
layers(Close,Close Active Laye&r\tCtrl+F4)
-
%endif
&Open File or URL...\tCtrl+O=ID_FILE_OPEN
-

Bac&k\tAlt+Left=ID_NAV_BACK
For&ward\tAlt+Right=ID_NAV_FORWARD
S&top\tEsc=ID_NAV_STOP
_____________________________________________
you will be adding new context-menu choices to some layers.
This will allow you to close the layers, or open a file (or url).

Options: ReplyQuote


K-Meleon forum is powered by Phorum.