Bugs :  K-Meleon Web Browser Forum
You can talk about issues with k-meleon here.  
Tab Problem
Posted by: Rapido
Date: August 17, 2008 04:49PM

I have a small issue that i wonder if it is a bug.... When I click on about plugins in help menu it opens in a window instead of a tab. I'm running K-M1.5 with tabs so it's kind of frustrating that it behaves like this. Is this a bug or have I done something wrong? Can somebody please tell me? I'm in need of some answer and help in this matter.

Yours: Rapido

Options: ReplyQuote
Re: Tab Problem
Posted by: desga2
Date: August 17, 2008 05:12PM

About that you can read this thread and this other.

K-Meleon in Spanish

Options: ReplyQuote
Re: Tab Problem
Posted by: Rapido
Date: August 17, 2008 10:40PM

I tried the solution in the tread above and it doesn't work for me. Please advice me how to fix this.

Yours: Rapido

Options: ReplyQuote
Re: Tab Problem
Posted by: desga2
Date: August 17, 2008 11:47PM

This works:
Quote
desga2
Edit -> Configuration -> User-Defined Macros, and create new file named AboutsTabs.kmm
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)

# ---------- Abouts in Tabs --------------------------------------------
#
# Dependencies        : main.kmm
# Resources        : -
# Preferences        : -
#
# ----------------------------------------------------------------------

A_Plugins{
#Delete this space between ":" and "plugins"
$OpenURL="about: plugins"; $OpenURL==""?0:&OpenURL_InNew;
}

A_KM{
$OpenURL="about:"; $OpenURL==""?0:&OpenURL_InNew;
}

# --- PRIVATE ---

#_AboutsTabs_BuildMenu{
#setmenu("KMAbout",macro,_("About &Plugins"),A_Plugins);
#setmenu("KMAbout",macro,_("About &K-Meleon"),A_KM);
#}

#$OnSetup=$OnSetup."_AboutsTabs_BuildMenu;";

# ------------------------------------------------------------------------
$macroModules=$macroModules."AboutsTabs;";

In Edit -> Configuration -> Menus, and add at the end of file:

KMAbout{
About &Plugins = macros(A_Plugins)
About &K-Meleon = macros(A_KM)
}

Note the indication bold line in code.

K-Meleon in Spanish

Options: ReplyQuote
Re: Tab Problem
Posted by: Rapido
Date: August 18, 2008 06:47PM

Well I have tried your solution but there is a small bug in it. The bold part where it says delete the space. It doesen't delete the space so that is why it's a bug in your macro. I have to delete the space by myself and I don't like that.

Yours: Rapido

Options: ReplyQuote
Re: Tab Problem
Posted by: JujuLand
Date: August 18, 2008 08:21PM

You have to delete the space, because it's not necessary.

If desga2 add a space here, it because of smiley

about:plugins

You see ???

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: Tab Problem
Posted by: Rapido
Date: August 18, 2008 09:58PM

I still get an error message: Data\K-Meleon\djszekmr.default\macros\aboutstabs.kmm at line33: ; expected but found <name>
And it als says: line33 : Invalid expression> configuration -> Menus and
Data\K-Meleon\djszekmr.default\macros\aboutstabs.kmm at line38: ; expected but found
So you see it doesen't work correctly with my k-meleon 1.5.0 running under WinXp.
Can somebody explain that to me?

Yours: Rapido

Options: ReplyQuote
Re: Tab Problem
Posted by: Rapido
Date: August 18, 2008 10:25PM

A correct macro should look like this:

Edit -> Configuration -> User-Defined Macros, and create new file named AboutsTabs.kmm

# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)

# ---------- Abouts in Tabs --------------------------------------------
#
# Dependencies : main.kmm
# Resources : -
# Preferences : -
#
# ----------------------------------------------------------------------

A_Plugins{
#Delete this space between ":" and "plugins"
$OpenURL="about:plugins"; $OpenURL==""?0:&OpenURL_InNew;
}

A_KM{
$OpenURL="about:"; $OpenURL==""?0:&OpenURL_InNew;
}

# --- PRIVATE ---

#_AboutsTabs_BuildMenu{
#setmenu("KMAbout",macro,_("About&Plugins"),A_Plugins);
#setmenu("KMAbout",macro,_("About&K-Meleon"),A_KM);
#}

#$OnSetup=$OnSetup."_AboutsTabs_BuildMenu;";

# ------------------------------------------------------------------------
$macroModules=$macroModules."AboutsTabs;";


In Edit -> Configuration -> Menus, and add at the end of file:

KMAbout{
About &Plugins = macros(A_Plugins)
About &K-Meleon = macros(A_KM)
}

Every space between Abouttongue sticking out smileylugins and About&Plugins + About&K-Meleon should be erased and macro will work perfectly.

I got it to work now so thanks for the help.

Yours: Rapido



Options: ReplyQuote


K-Meleon forum is powered by Phorum.