If I understand good, in this thread you like add NoScript and AdBlockPlus toolbars buttons to the Privacy Bar toolbar. Is this correct?
Privacy bar is in menu: View -> Toolbars -> Privacy Bar
By default this extension created a toolbar button size 16x16 or 24x24.
Privacy Bar (by default) is a diferent size toolbar button (64x13) and almost this include text in buttons. But you can mixed buttons of diferent size in a toolbar if you set the size in button definition.
Here you can found the documentation about next code.
For example to NoScript:
Open noscript.kmm file in an text editor, and search this code at the end of file:
_NoScript_BuildToolbar{
# Toolbars
$Large=(index(readfile(getfolder("SkinFolder")."\\..\\skins.ini"),getpref(STRING,"kmeleon.general.skinsCurrent")."=1")>-1);
$Large ? pluginmsg(toolbars,"AddToolbar","NoScript,24,24",""):pluginmsg(toolbars,"AddToolbar","NoScript,16,16","");
$Large ? pluginmsg(toolbars,"AddButton","NoScript,NoScript,macros(NoScript_Toggle),&NoScript,".$_NoScript_Tooltip.",24,24,"."noscript_large.bmp[0],"."noscript_large.bmp[1]"."noscript_large.bmp[2]",""):0;
$Large ? 0:pluginmsg(toolbars,"AddButton","NoScript,NoScript,macros(NoScript_Toggle),&NoScript,".$_NoScript_Tooltip.",16,16,"."noscript.bmp[0],"."noscript.bmp[1]"."noscript.bmp[2]","");
}
For privacy bar is better the little button 16x16, change this code to add the button to Privacy bar instead his own toolbar:
_NoScript_BuildToolbar{
# Button in Privacy Bar
pluginmsg(toolbars,"AddButton","&Privacy Bar,NoScript,macros(NoScript_Toggle),&NoScript,".$_NoScript_Tooltip.",16,16,"."noscript.bmp[0],"."noscript.bmp[1]"."noscript.bmp[2]","");
}
But in KM 1.5.3 exist the
bug # 1130 "pluginmsg AddButton broken" fixed for the next 1.5.4 version.
For AdBLockPlus by default any toolbar button is defined but you can add it to his macro file adblockplus.kmm.
_AdBlockPlus_BuildToolbar{
# Button in Privacy Bar
pluginmsg(toolbars,"AddButton","&Privacy Bar,AdBlockPlus,adblockplus(Preferences),,"."AdBlockPlus".",16,16,"."adblockplus.bmp[0],"."adblockplus.bmp[1]"."adblockplus.bmp[2]","");
}
$OnSetup=$OnSetup."_AdBlockPlus_BuildToolbar;";
Remember you must create an adblockplus.bmp file with ABP icons and place it in "\K-Meleon\skins\default" folder.
Note: adblockplus(Preferences),[Here you can put a menu name for rightclick contextmenu for the button],
K-Meleon in Spanish