diff options
author | fluxgen <fluxgen> | 2002-04-04 11:28:19 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2002-04-04 11:28:19 (GMT) |
commit | 2526e4bce821eedcd4bcc13e0f27ac7b9e255350 (patch) | |
tree | f86898efe146ecb882e597955e1e94b375154b19 /src/Basemenu.cc | |
parent | bd05695cfa6d066e5e5368d857eef8c0b11987c1 (diff) | |
download | fluxbox_pavel-2526e4bce821eedcd4bcc13e0f27ac7b9e255350.zip fluxbox_pavel-2526e4bce821eedcd4bcc13e0f27ac7b9e255350.tar.bz2 |
moved nls defines to enums in namespace FBNLS
Diffstat (limited to 'src/Basemenu.cc')
-rw-r--r-- | src/Basemenu.cc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/Basemenu.cc b/src/Basemenu.cc index cdb7ea2..79e53e5 100644 --- a/src/Basemenu.cc +++ b/src/Basemenu.cc | |||
@@ -22,7 +22,7 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Basemenu.cc,v 1.17 2002/04/03 23:08:19 fluxgen Exp $ | 25 | // $Id: Basemenu.cc,v 1.18 2002/04/04 11:28:19 fluxgen Exp $ |
26 | 26 | ||
27 | //use GNU extensions | 27 | //use GNU extensions |
28 | #ifndef _GNU_SOURCE | 28 | #ifndef _GNU_SOURCE |
@@ -281,7 +281,7 @@ void Basemenu::update(void) { | |||
281 | if (title_vis) { | 281 | if (title_vis) { |
282 | const char *s = (menu.label) ? menu.label : | 282 | const char *s = (menu.label) ? menu.label : |
283 | i18n->getMessage( | 283 | i18n->getMessage( |
284 | BasemenuSet, BasemenuBlackboxMenu, | 284 | FBNLS::BasemenuSet, FBNLS::BasemenuBlackboxMenu, |
285 | "fluxbox Menu"); | 285 | "fluxbox Menu"); |
286 | int l = strlen(s); | 286 | int l = strlen(s); |
287 | 287 | ||
@@ -484,11 +484,7 @@ void Basemenu::redrawTitle(void) { | |||
484 | I18n *i18n = I18n::instance(); | 484 | I18n *i18n = I18n::instance(); |
485 | char *text = (char *) ((menu.label) ? menu.label : | 485 | char *text = (char *) ((menu.label) ? menu.label : |
486 | i18n->getMessage( | 486 | i18n->getMessage( |
487 | #ifdef NLS | 487 | FBNLS::BasemenuSet, FBNLS::BasemenuBlackboxMenu, |
488 | BasemenuSet, BasemenuBlackboxMenu, | ||
489 | #else // !NLS | ||
490 | 0, 0, | ||
491 | #endif // NLS | ||
492 | "fluxbox Menu")); | 488 | "fluxbox Menu")); |
493 | int dx = menu.bevel_w, len = strlen(text); | 489 | int dx = menu.bevel_w, len = strlen(text); |
494 | unsigned int l; | 490 | unsigned int l; |