![](https://secure.gravatar.com/avatar/ea82b036a537a86ff8f886e89f2c5944.jpg?s=120&d=mm&r=g)
8 Dec
2005
8 Dec
'05
5:49 p.m.
Jeremy Y. Meng wrote:
BTW, what is the easiest way to disable menu entries (make them gray)? Could anyone point me to the related source files please?
Answer is probably best expressed in an example:
#include <verbs.h>
Inkscape::Verb * myverb = Inkscape::Verb::getbyid("my.verb.id"); myverb->sensitive(false);
If you only want one document you can do:
myverb->sensitive(mydoc, false);
All the code is in verbs.[h|cpp]
--Ted