On Mon, 2004-10-11 at 17:03, Angus Leeming wrote:
> void GChanges::doBuild()
> {
>         // disable for read-only documents
>         bcview().addReadOnly(acceptbutton_);
>         bcview().addReadOnly(rejectbutton_);
>         bcview().addReadOnly(nextbutton_);
> }
But then the dialog doesn't behave properly for a readonly document: in
this case the accept and reject buttons should be disabled, but the next
button should be enabled.

> void GChanges::promptChange()
> {
>         bc().readonly(false);
> }
Don't we need a conditional here, to do this only if the document itself
is not readonly?

I'm not trying to be difficult, my only interest is in making the gtk+
frontend work well, and when I've already made something work, I take
some convincing that it should be done differently :-)

John


Reply via email to