diff options
author | Mathias Gumz <akira@fluxbox.org> | 2015-01-10 21:56:28 (GMT) |
---|---|---|
committer | Mathias Gumz <akira@fluxbox.org> | 2015-01-10 21:56:28 (GMT) |
commit | b16528de87e80dcd1ae9f70c8c76fd8da722d2da (patch) | |
tree | 5509b9b67be8c826d1cf4bf11b05a6e47b2af5de /src | |
parent | c47280236f2e6d3cb9aa267184a4081ec4e844c6 (diff) | |
download | fluxbox-b16528de87e80dcd1ae9f70c8c76fd8da722d2da.zip fluxbox-b16528de87e80dcd1ae9f70c8c76fd8da722d2da.tar.bz2 |
Make use of API instead of hardcoded default font
Diffstat (limited to 'src')
-rw-r--r-- | src/FbWinFrameTheme.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/FbWinFrameTheme.cc b/src/FbWinFrameTheme.cc index f01c546..e1ec708 100644 --- a/src/FbWinFrameTheme.cc +++ b/src/FbWinFrameTheme.cc | |||
@@ -20,11 +20,11 @@ | |||
20 | // DEALINGS IN THE SOFTWARE. | 20 | // DEALINGS IN THE SOFTWARE. |
21 | 21 | ||
22 | #include "FbWinFrameTheme.hh" | 22 | #include "FbWinFrameTheme.hh" |
23 | #include "IconbarTheme.hh" | ||
24 | |||
23 | #include "FbTk/App.hh" | 25 | #include "FbTk/App.hh" |
24 | #include "FbTk/Util.hh" | 26 | #include "FbTk/Util.hh" |
25 | 27 | ||
26 | #include "IconbarTheme.hh" | ||
27 | |||
28 | #include <X11/cursorfont.h> | 28 | #include <X11/cursorfont.h> |
29 | 29 | ||
30 | FbWinFrameTheme::FbWinFrameTheme(int screen_num, const std::string &extra, | 30 | FbWinFrameTheme::FbWinFrameTheme(int screen_num, const std::string &extra, |
@@ -49,8 +49,7 @@ FbWinFrameTheme::FbWinFrameTheme(int screen_num, const std::string &extra, | |||
49 | "Window.Label" + altextra) { | 49 | "Window.Label" + altextra) { |
50 | 50 | ||
51 | *m_title_height = 0; | 51 | *m_title_height = 0; |
52 | // set defaults | 52 | m_font->load(FbTk::Font::DEFAULT_FONT); |
53 | m_font->load("__DEFAULT__"); | ||
54 | 53 | ||
55 | // create cursors | 54 | // create cursors |
56 | Display *disp = FbTk::App::instance()->display(); | 55 | Display *disp = FbTk::App::instance()->display(); |