diff options
author | fluxgen <fluxgen> | 2004-09-11 23:01:34 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2004-09-11 23:01:34 (GMT) |
commit | 049e40c9eb6e6e8651b171a2a78465398c87f6a1 (patch) | |
tree | 7aef9d57e82336221d6d953617c7a5d53ee95db0 /src/FbTk/TextBox.cc | |
parent | acd2176355876a7bb7afe9d026f9780a3d1c2737 (diff) | |
download | fluxbox_paul-049e40c9eb6e6e8651b171a2a78465398c87f6a1.zip fluxbox_paul-049e40c9eb6e6e8651b171a2a78465398c87f6a1.tar.bz2 |
Font::drawText takes reference to FbDrawable instead of X Drawable + some code cleaning
Diffstat (limited to 'src/FbTk/TextBox.cc')
-rw-r--r-- | src/FbTk/TextBox.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/TextBox.cc b/src/FbTk/TextBox.cc index 34671c9..34c0689 100644 --- a/src/FbTk/TextBox.cc +++ b/src/FbTk/TextBox.cc | |||
@@ -19,7 +19,7 @@ | |||
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: TextBox.cc,v 1.12 2004/08/31 15:26:39 rathnor Exp $ | 22 | // $Id: TextBox.cc,v 1.13 2004/09/11 22:58:20 fluxgen Exp $ |
23 | 23 | ||
24 | #include "TextBox.hh" | 24 | #include "TextBox.hh" |
25 | #include "Font.hh" | 25 | #include "Font.hh" |
@@ -157,7 +157,7 @@ void TextBox::clear() { | |||
157 | if (gc() == 0) | 157 | if (gc() == 0) |
158 | setGC(DefaultGC(FbTk::App::instance()->display(), screenNumber())); | 158 | setGC(DefaultGC(FbTk::App::instance()->display(), screenNumber())); |
159 | 159 | ||
160 | font().drawText(window(), screenNumber(), | 160 | font().drawText(*this, screenNumber(), |
161 | gc(), | 161 | gc(), |
162 | text().c_str() + m_start_pos, | 162 | text().c_str() + m_start_pos, |
163 | m_end_pos - m_start_pos, | 163 | m_end_pos - m_start_pos, |