diff options
author | Mathias Gumz <akira@fluxbox.org> | 2015-01-31 11:04:30 (GMT) |
---|---|---|
committer | Mathias Gumz <akira@fluxbox.org> | 2015-01-31 11:04:30 (GMT) |
commit | 0a87632032895a475806585f2dc34ade4212a1cf (patch) | |
tree | f930eb5f50dc7283c5f5bb8f6b575914b53dcc88 /util | |
parent | f8b9c9a211af2f9ee54c533367ef69e330bdfa8e (diff) | |
download | fluxbox-0a87632032895a475806585f2dc34ade4212a1cf.zip fluxbox-0a87632032895a475806585f2dc34ade4212a1cf.tar.bz2 |
Clean up FbTk::I18n API
Move private stuff into FbTk/I18n.cc.
Diffstat (limited to 'util')
-rw-r--r-- | util/fbsetroot.cc | 20 | ||||
-rw-r--r-- | util/fluxbox-update_configs.cc | 2 |
2 files changed, 5 insertions, 17 deletions
diff --git a/util/fbsetroot.cc b/util/fbsetroot.cc index c787619..28ad26e 100644 --- a/util/fbsetroot.cc +++ b/util/fbsetroot.cc | |||
@@ -28,21 +28,9 @@ | |||
28 | 28 | ||
29 | #include <X11/Xatom.h> | 29 | #include <X11/Xatom.h> |
30 | 30 | ||
31 | #ifdef HAVE_CSTRING | 31 | #include <cstring> |
32 | #include <cstring> | 32 | #include <cstdlib> |
33 | #else | 33 | #include <cstdio> |
34 | #include <string.h> | ||
35 | #endif | ||
36 | #ifdef HAVE_CSTDLIB | ||
37 | #include <cstdlib> | ||
38 | #else | ||
39 | #include <stdlib.h> | ||
40 | #endif | ||
41 | #ifdef HAVE_CSTDIO | ||
42 | #include <cstdio> | ||
43 | #else | ||
44 | #include <stdio.h> | ||
45 | #endif | ||
46 | #include <iostream> | 34 | #include <iostream> |
47 | 35 | ||
48 | using std::cout; | 36 | using std::cout; |
@@ -382,7 +370,7 @@ int main(int argc, char **argv) { | |||
382 | char *display_name = (char *) 0; | 370 | char *display_name = (char *) 0; |
383 | int i = 1; | 371 | int i = 1; |
384 | 372 | ||
385 | FbTk::NLSInit("fluxbox.cat"); | 373 | FbTk::I18n::init("fluxbox.cat"); |
386 | 374 | ||
387 | for (; i < argc; i++) { | 375 | for (; i < argc; i++) { |
388 | if (!strcmp(argv[i], "-display") || !strcmp(argv[i], "--display")) { | 376 | if (!strcmp(argv[i], "-display") || !strcmp(argv[i], "--display")) { |
diff --git a/util/fluxbox-update_configs.cc b/util/fluxbox-update_configs.cc index 07b7102..a7d3d4a 100644 --- a/util/fluxbox-update_configs.cc +++ b/util/fluxbox-update_configs.cc | |||
@@ -565,7 +565,7 @@ int main(int argc, char **argv) { | |||
565 | bool check = 0; | 565 | bool check = 0; |
566 | pid_t fb_pid = 0; | 566 | pid_t fb_pid = 0; |
567 | 567 | ||
568 | FbTk::NLSInit("fluxbox.cat"); | 568 | FbTk::I18n::init("fluxbox.cat"); |
569 | _FB_USES_NLS; | 569 | _FB_USES_NLS; |
570 | 570 | ||
571 | for (; i < argc; i++) { | 571 | for (; i < argc; i++) { |