From ec552e6430ac86b1234c9a7798bf4e028a3c78c0 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 1 Jun 2011 21:49:35 +0300 Subject: Set secure font in chat tab name if need. --- src/gui/widgets/tab.cpp | 8 ++++++++ src/gui/widgets/tab.h | 6 ++++++ 2 files changed, 14 insertions(+) (limited to 'src/gui/widgets') diff --git a/src/gui/widgets/tab.cpp b/src/gui/widgets/tab.cpp index 7287d6a8e..37a32480d 100644 --- a/src/gui/widgets/tab.cpp +++ b/src/gui/widgets/tab.cpp @@ -229,3 +229,11 @@ void Tab::widgetMoved(const gcn::Event &event _UNUSED_) { mRedraw = true; } + +void Tab::setLabelFont(gcn::Font *font) +{ + if (!mLabel) + return; + + mLabel->setFont(font); +} diff --git a/src/gui/widgets/tab.h b/src/gui/widgets/tab.h index f9f1fa4da..5847bd505 100644 --- a/src/gui/widgets/tab.h +++ b/src/gui/widgets/tab.h @@ -23,6 +23,7 @@ #ifndef TAB_H #define TAB_H +#include #include #include @@ -67,6 +68,11 @@ class Tab : public gcn::Tab, public gcn::WidgetListener void widgetMoved(const gcn::Event &event); + void setLabelFont(gcn::Font *font); + + gcn::Label *getLabel() + { return mLabel; } + protected: friend class TabbedArea; virtual void setCurrent() -- cgit v1.2.3-70-g09d2