[gps-users] Adding A button on the toolbar

Emmanuel Briot briot at adacore.com
Wed Aug 9 09:33:53 CEST 2006


Anh Vo wrote:
> I would like to add a button, for example for doing the same
> functionality as Build -> Compile File, on the toolbar. Even after
> reading the document, I still do not know how to do it. Could some one
> show me an example. Thank you in advance.


Create the file $HOME/.gps/plug-ins/button.xml with:

<?xml version="1.0"?>
<GPS>
   <button action="/Build/Compile File">
       <title>Compile File</title>
   </button>
</GPS>

This example comes more or less straight from the documentation, section
"Adding tool bar buttons"

regards
Emmanuel


More information about the gps-users mailing list