On Mon, 2011-12-19 at 09:00 -0600, Jeremiah Benham wrote: > > * All these scripts should share a common function call > rather > > than repeating the same code. I guess this will be best in > the > > top level (denemo.scm or denemo-modules) rather than in the > > init.scm, as the same thing will be needed for ornaments > etc, > > (ie other menus).
I see you have created a common procedure to call, however its name d-DirectivePut-note-font-lilypond leaves a lot to be desired :( d-XXX indicates a procedure that has a corresponding GtkAction of name XXX and d-DirectivePut-typename-fieldname indicates a command that creates or modifies the field called fieldname of the directive of type typename - they expect a tag and a value for the field. This procedure actually affects directives of type chord yet is it named -note- (and so on... L) I suggest ToggleChordDirective which takes tag, graphic and lilypond-postfix strings. The Toggle bit of the name indicates it deletes a directive of that tag if present, the Chord bit says what type of directive it works on. Richard _______________________________________________ Denemo-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/denemo-devel
