I am cleaning up my blackbox menu by moving the [config] directive into a
submenu. I want to allow it to use my defined submenu label choice.

For example, in the regular use, I can use:

    [config] (Blackbox) {Configure Blackbox}

But the Blackbox submenu will be titled "Config Options" as defined by
NLS. I want to be able to choose my own description.

So in Screen.cc I added to the "// config" section:

          if (*command)
            configmenu->setLabel(command);

And then I commented out the setLabel part in Configmenu::Configmenu in
Configmenu.cc. And it worked. If I don't define my own {description}, then
it defaults to "Blackbox Menu". 

I am a beginning C++ user. How can I check to see if the label is defined
so if it is not defined, then it will use the NLS choice (Config Options) 
instead?

Thanks for any hints or suggestions,

  Jeremy C. Reed
  http://www.reedmedia.net/
  http://bsd.reedmedia.net/

Reply via email to