Make use of API instead of hardcoded default font

This commit is contained in:
Mathias Gumz 2015-01-10 22:56:28 +01:00
parent c47280236f
commit b16528de87

View file

@ -20,11 +20,11 @@
// DEALINGS IN THE SOFTWARE.
#include "FbWinFrameTheme.hh"
#include "IconbarTheme.hh"
#include "FbTk/App.hh"
#include "FbTk/Util.hh"
#include "IconbarTheme.hh"
#include <X11/cursorfont.h>
FbWinFrameTheme::FbWinFrameTheme(int screen_num, const std::string &extra,
@ -49,8 +49,7 @@ FbWinFrameTheme::FbWinFrameTheme(int screen_num, const std::string &extra,
"Window.Label" + altextra) {
*m_title_height = 0;
// set defaults
m_font->load("__DEFAULT__");
m_font->load(FbTk::Font::DEFAULT_FONT);
// create cursors
Display *disp = FbTk::App::instance()->display();