aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk')
-rw-r--r--src/FbTk/Makefile.am7
-rw-r--r--src/FbTk/XmbFontImp.cc10
2 files changed, 9 insertions, 8 deletions
diff --git a/src/FbTk/Makefile.am b/src/FbTk/Makefile.am
index 1e40bfc..18e394a 100644
--- a/src/FbTk/Makefile.am
+++ b/src/FbTk/Makefile.am
@@ -12,14 +12,17 @@ libFbTk_a_SOURCES = App.hh App.cc Color.cc Color.hh Command.hh \
12 FbWindow.hh FbWindow.cc Font.cc Font.hh FontImp.hh \ 12 FbWindow.hh FbWindow.cc Font.cc Font.hh FontImp.hh \
13 ImageControl.hh ImageControl.cc \ 13 ImageControl.hh ImageControl.cc \
14 MacroCommand.hh MacroCommand.cc \ 14 MacroCommand.hh MacroCommand.cc \
15 Menu.hh Menu.cc MenuItem.hh MenuItem.cc MenuTheme.hh MenuTheme.cc NotCopyable.hh \ 15 Menu.hh Menu.cc MenuItem.hh MenuItem.cc \
16 MenuTheme.hh MenuTheme.cc NotCopyable.hh \
16 RefCount.hh SimpleCommand.hh SignalHandler.cc SignalHandler.hh \ 17 RefCount.hh SimpleCommand.hh SignalHandler.cc SignalHandler.hh \
17 Text.hh Text.cc \ 18 Text.hh Text.cc \
18 Texture.cc Texture.hh TextureRender.hh TextureRender.cc Theme.hh Theme.cc Timer.hh Timer.cc \ 19 Texture.cc Texture.hh TextureRender.hh TextureRender.cc \
20 Theme.hh Theme.cc Timer.hh Timer.cc \
19 XFontImp.cc XFontImp.hh \ 21 XFontImp.cc XFontImp.hh \
20 Button.hh Button.cc \ 22 Button.hh Button.cc \
21 Layer.hh LayerItem.hh MultLayers.cc MultLayers.hh \ 23 Layer.hh LayerItem.hh MultLayers.cc MultLayers.hh \
22 XLayer.cc XLayer.hh XLayerItem.cc XLayerItem.hh \ 24 XLayer.cc XLayer.hh XLayerItem.cc XLayerItem.hh \
25 StringUtil.hh StringUtil.cc \
23 Subject.hh Subject.cc Observer.hh Observer.cc \ 26 Subject.hh Subject.cc Observer.hh Observer.cc \
24 Transparent.hh Transparent.cc \ 27 Transparent.hh Transparent.cc \
25 FbPixmap.hh FbPixmap.cc \ 28 FbPixmap.hh FbPixmap.cc \
diff --git a/src/FbTk/XmbFontImp.cc b/src/FbTk/XmbFontImp.cc
index 431b598..6a3ffed 100644
--- a/src/FbTk/XmbFontImp.cc
+++ b/src/FbTk/XmbFontImp.cc
@@ -1,5 +1,5 @@
1// XmbFontImp.cc for FbTk fluxbox toolkit 1// XmbFontImp.cc for FbTk fluxbox toolkit
2// Copyright (c) 2002 Henrik Kinnunen (fluxgen at linuxmail.org) 2// Copyright (c) 2002-2003 Henrik Kinnunen (fluxgen at users.sourceforge.net)
3// 3//
4// Permission is hereby granted, free of charge, to any person obtaining a 4// Permission is hereby granted, free of charge, to any person obtaining a
5// copy of this software and associated documentation files (the "Software"), 5// copy of this software and associated documentation files (the "Software"),
@@ -19,14 +19,12 @@
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: XmbFontImp.cc,v 1.5 2003/02/17 23:36:43 fluxgen Exp $ 22// $Id: XmbFontImp.cc,v 1.6 2003/04/26 18:57:51 fluxgen Exp $
23 23
24#include "XmbFontImp.hh" 24#include "XmbFontImp.hh"
25 25
26#include "App.hh" 26#include "App.hh"
27 27#include "StringUtil.hh"
28//!! TODO: Change this
29#include "../StringUtil.hh"
30 28
31#ifdef HAVE_CONFIG_H 29#ifdef HAVE_CONFIG_H
32#include "config.h" 30#include "config.h"
@@ -104,7 +102,7 @@ const char *getFontElement(const char *pattern, char *buf, int bufsiz, ...) {
104 buf[bufsiz-1] = 0; 102 buf[bufsiz-1] = 0;
105 buf[bufsiz-2] = '*'; 103 buf[bufsiz-2] = '*';
106 while((v = va_arg(va, char *)) != 0) { 104 while((v = va_arg(va, char *)) != 0) {
107 p = StringUtil::strcasestr(pattern, v); 105 p = FbTk::StringUtil::strcasestr(pattern, v);
108 if (p) { 106 if (p) {
109 std::strncpy(buf, p+1, bufsiz-2); 107 std::strncpy(buf, p+1, bufsiz-2);
110 p2 = strchr(buf, '-'); 108 p2 = strchr(buf, '-');