PDA

View Full Version : Rerunning ruby-glade-create-template



apoth
June 9th, 2007, 09:14 PM
If I create a complicated UI and need to make a change to it down the line, currently I have to rerun ruby-glade-create-template and add in all the 'glue' code again for the callbacks to link to the 'business logic'.

Is there a way of regenerating the glade file and keeping the glue code where I've left widgets otherwise untouched? It'd be really useful if there is.

Thanks

marcantonio
September 10th, 2007, 12:44 AM
You don't have to rerun ruby-glade-create-template every time you make a change to the gui. Glade only updates the .glade file. You will have to add callbacks, but they are simple method declarations.

HTH
Marc

charlie763
April 14th, 2008, 03:24 AM
Try Gladex (https://launchpad.net/gladex/). It has a GUI, supports ruby code generation. I also believe it keeps the GUI code and your callback code in two different files and will append the callback file when you add a new callback to the glade file.