From 6b68259ac65949edb3e1eae32382c991e207d05a Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Thu, 21 Mar 2013 09:54:00 +0100 Subject: [PATCH] CComponentsText: rename getCCItemTextBoxInst -> getCTextBoxObject This name should be more plausible --- src/gui/components/cc.h | 3 ++- src/gui/imageinfo.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gui/components/cc.h b/src/gui/components/cc.h index 9a8f89ddf..8fee53eea 100644 --- a/src/gui/components/cc.h +++ b/src/gui/components/cc.h @@ -202,7 +202,8 @@ class CComponentsText : public CComponentsItem virtual void setText(neutrino_locale_t locale_text, const int mode = ~CTextBox::AUTO_WIDTH, Font* font_text = NULL); virtual void removeLineBreaks(std::string& str); - CTextBox* getCCItemTextBoxInst() { return ct_textbox; }; + //get a Text Box object, so it's possible to get access directly to its methods + CTextBox* getCTextBoxObject() { return ct_textbox; }; }; class CComponentsLabel : public CComponentsText diff --git a/src/gui/imageinfo.cpp b/src/gui/imageinfo.cpp index 5d450cb6f..021539e68 100644 --- a/src/gui/imageinfo.cpp +++ b/src/gui/imageinfo.cpp @@ -290,7 +290,7 @@ void CImageInfo::ScrollLic(bool scrollDown) { if (cc_lic && (cc_lic->cctext)) { //get the textbox instance from infobox object and use CTexBbox scroll methods - CTextBox* ctb = cc_lic->cctext->getCCItemTextBoxInst(); + CTextBox* ctb = cc_lic->cctext->getCTextBoxObject(); if (ctb) { ctb->enableBackgroundPaint(true); if (scrollDown)