diff options
author | rathnor <rathnor> | 2004-06-07 11:46:05 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2004-06-07 11:46:05 (GMT) |
commit | fff4456dee29e675d7f2ed3490db39bcb7e10e53 (patch) | |
tree | 2d2dbf386551773cbdc8231b2a93b493187bd733 /src/FbTk/Color.cc | |
parent | 073065ac56b388db1169108d44f37d32f1d19c67 (diff) | |
download | fluxbox-fff4456dee29e675d7f2ed3490db39bcb7e10e53.zip fluxbox-fff4456dee29e675d7f2ed3490db39bcb7e10e53.tar.bz2 |
update NLS string handling...
Diffstat (limited to 'src/FbTk/Color.cc')
-rw-r--r-- | src/FbTk/Color.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/FbTk/Color.cc b/src/FbTk/Color.cc index 0a45864..cd6c2a8 100644 --- a/src/FbTk/Color.cc +++ b/src/FbTk/Color.cc | |||
@@ -19,12 +19,13 @@ | |||
19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 19 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | // $Id: Color.cc,v 1.10 2004/04/25 16:12:21 fluxgen Exp $ | 22 | // $Id: Color.cc,v 1.11 2004/06/07 11:46:05 rathnor Exp $ |
23 | 23 | ||
24 | #include "Color.hh" | 24 | #include "Color.hh" |
25 | 25 | ||
26 | #include "App.hh" | 26 | #include "App.hh" |
27 | #include "StringUtil.hh" | 27 | #include "StringUtil.hh" |
28 | #include "I18n.hh" | ||
28 | 29 | ||
29 | #include <iostream> | 30 | #include <iostream> |
30 | using namespace std; | 31 | using namespace std; |
@@ -155,7 +156,8 @@ void Color::allocate(unsigned short red, unsigned short green, unsigned short bl | |||
155 | 156 | ||
156 | 157 | ||
157 | if (!XAllocColor(disp, DefaultColormap(disp, screen), &color)) { | 158 | if (!XAllocColor(disp, DefaultColormap(disp, screen), &color)) { |
158 | cerr<<"FbTk::Color: Allocation error."<<endl; | 159 | _FB_USES_NLS; |
160 | cerr<<"FbTk::Color: "<<_FBTKTEXT(Error, ColorAllocation, "Allocation error.", "XAllocColor failed...")<<endl; | ||
159 | } else { | 161 | } else { |
160 | setRGB(maxValue(color.red), | 162 | setRGB(maxValue(color.red), |
161 | maxValue(color.green), | 163 | maxValue(color.green), |