aboutsummaryrefslogtreecommitdiff
path: root/src/Xutil.cc
diff options
context:
space:
mode:
authorrathnor <rathnor>2004-06-07 11:46:05 (GMT)
committerrathnor <rathnor>2004-06-07 11:46:05 (GMT)
commitfff4456dee29e675d7f2ed3490db39bcb7e10e53 (patch)
tree2d2dbf386551773cbdc8231b2a93b493187bd733 /src/Xutil.cc
parent073065ac56b388db1169108d44f37d32f1d19c67 (diff)
downloadfluxbox-fff4456dee29e675d7f2ed3490db39bcb7e10e53.zip
fluxbox-fff4456dee29e675d7f2ed3490db39bcb7e10e53.tar.bz2
update NLS string handling...
Diffstat (limited to 'src/Xutil.cc')
-rw-r--r--src/Xutil.cc14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/Xutil.cc b/src/Xutil.cc
index e36080a..514198c 100644
--- a/src/Xutil.cc
+++ b/src/Xutil.cc
@@ -20,12 +20,12 @@
20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 20// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
21// DEALINGS IN THE SOFTWARE. 21// DEALINGS IN THE SOFTWARE.
22 22
23// $Id: Xutil.cc,v 1.4 2004/01/30 11:06:25 rathnor Exp $ 23// $Id: Xutil.cc,v 1.5 2004/06/07 11:46:04 rathnor Exp $
24 24
25#include "Xutil.hh" 25#include "Xutil.hh"
26 26
27#include "I18n.hh" 27#include "FbTk/I18n.hh"
28#include "App.hh" 28#include "FbTk/App.hh"
29 29
30#include <X11/Xutil.h> 30#include <X11/Xutil.h>
31#include <X11/Xatom.h> 31#include <X11/Xatom.h>
@@ -46,7 +46,7 @@ std::string getWMName(Window window) {
46 text_prop.value = 0; 46 text_prop.value = 0;
47 char **list; 47 char **list;
48 int num; 48 int num;
49 I18n *i18n = I18n::instance(); 49 _FB_USES_NLS;
50 std::string name; 50 std::string name;
51 51
52 if (XGetWMName(display, window, &text_prop)) { 52 if (XGetWMName(display, window, &text_prop)) {
@@ -69,13 +69,11 @@ std::string getWMName(Window window) {
69 XFree(text_prop.value); 69 XFree(text_prop.value);
70 70
71 } else { // default name 71 } else { // default name
72 name = i18n->getMessage(FBNLS::WindowSet, FBNLS::WindowUnnamed, 72 name = _FBTEXT(Window, Unnamed, "Unnamed", "Default name for a window without a WM_NAME");
73 "Unnamed");
74 } 73 }
75 } else { 74 } else {
76 // default name 75 // default name
77 name = i18n->getMessage(FBNLS::WindowSet, FBNLS::WindowUnnamed, 76 name = _FBTEXT(Window, Unnamed, "Unnamed", "Default name for a window without a WM_NAME");
78 "Unnamed");
79 } 77 }
80 78
81 return name; 79 return name;