mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
Change new class member name to more unique, this prevents possible conflicts - with strict compile at least one was in bouqueteditor_channels.cpp
git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1910 e54a6e83-5905-42d5-8d5c-058d10e6a962
This commit is contained in:
@@ -327,14 +327,14 @@ CMenuWidget::CMenuWidget(const char* Name, const std::string & Icon, const int m
|
|||||||
|
|
||||||
void CMenuWidget::Init(const std::string & Icon, const int mwidth, const mn_widget_id_t &w_index)
|
void CMenuWidget::Init(const std::string & Icon, const int mwidth, const mn_widget_id_t &w_index)
|
||||||
{
|
{
|
||||||
m = CMenuGlobal::getInstance(); //create CMenuGlobal instance only here
|
mglobal = CMenuGlobal::getInstance(); //create CMenuGlobal instance only here
|
||||||
frameBuffer = CFrameBuffer::getInstance();
|
frameBuffer = CFrameBuffer::getInstance();
|
||||||
iconfile = Icon;
|
iconfile = Icon;
|
||||||
|
|
||||||
//handle select values
|
//handle select values
|
||||||
widget_index = w_index;
|
widget_index = w_index;
|
||||||
preselected = NO_WIDGET_ID;
|
preselected = NO_WIDGET_ID;
|
||||||
selected = (widget_index == NO_WIDGET_ID ? preselected : m->v_selected[widget_index]);
|
selected = (widget_index == NO_WIDGET_ID ? preselected : mglobal->v_selected[widget_index]);
|
||||||
|
|
||||||
min_width = 0;
|
min_width = 0;
|
||||||
width = 0; /* is set in paint() */
|
width = 0; /* is set in paint() */
|
||||||
@@ -755,7 +755,7 @@ int CMenuWidget::exec(CMenuTarget* parent, const std::string &)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (widget_index > -1)
|
if (widget_index > -1)
|
||||||
m->v_selected[widget_index] = selected;
|
mglobal->v_selected[widget_index] = selected;
|
||||||
|
|
||||||
frameBuffer->Unlock();
|
frameBuffer->Unlock();
|
||||||
return retval;
|
return retval;
|
||||||
|
@@ -390,7 +390,7 @@ class CMenuWidget : public CMenuTarget
|
|||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
mn_widget_id_t widget_index;
|
mn_widget_id_t widget_index;
|
||||||
CMenuGlobal *m;
|
CMenuGlobal *mglobal;
|
||||||
protected:
|
protected:
|
||||||
std::string nameString;
|
std::string nameString;
|
||||||
neutrino_locale_t name;
|
neutrino_locale_t name;
|
||||||
|
Reference in New Issue
Block a user