Revert my last commit since it is useless now ^^

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5958 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
xapantu 2010-09-10 18:34:40 +00:00
parent 4df28afc80
commit 694a782caf
3 changed files with 4 additions and 8 deletions

View File

@ -1,6 +1,6 @@
<stkgui>
<div x="0%" y="10%" width="90%" height="80%" layout="horizontal-row" >
<div x="5%" y="0%" width="90%" height="80%" layout="horizontal-row" >
<div width="50%" height="90%" layout="vertical-row" >
<icon id="icon" align="center" proportion="8" width="100%" icon="gui/logo.png"/>
</div>
@ -13,7 +13,7 @@
</div>
<div x="90%" y = "10%" width="80%" height="10%" layout="horizontal-row" >
<div x="5%" y="80%" width="90%" height="10%" layout="horizontal-row" >
<button id="cancel" I18N="Addons" text="Back" align="center"/>
<button id="install" I18N="Addons" text="Install" align="center"/>
</div>

View File

@ -243,7 +243,7 @@ void * MainMenuScreen::downloadNews( void * pthis)
#endif
// ------------------------------------------------------------------------------------------------------
#ifdef ADDONS_MANAGER
void MainMenuScreen::tearDown()
MainMenuScreen::~MainMenuScreen()
{
fprintf(stdout, "canceling the thread");
pthread_cancel(m_thread_news_text);

View File

@ -36,6 +36,7 @@ public:
void changeNewsText(std::string action);
pthread_mutex_t m_mutex_news_text;
pthread_t m_thread_news_text;
~MainMenuScreen();
std::string m_news_text;
void onUpdate(float delta, irr::video::IVideoDriver* driver);
#endif
@ -48,11 +49,6 @@ public:
/** \brief implement callback from parent class GUIEngine::Screen */
virtual void init();
#ifdef ADDONS_MANAGER
/** \brief implement callback from parent class GUIEngine::Screen */
virtual void tearDown();
#endif
/** This function is used to download a text from the server to show the news. */
static void * downloadNews(void *);