Changes to be compatible to the latest libgui version

This commit is contained in:
Maschell 2020-04-27 13:03:54 +02:00
parent cc2fd2e414
commit b081028575
6 changed files with 9 additions and 5 deletions

View File

@ -51,7 +51,7 @@ LIBS := -lgui -lfreetype -lgd -lpng -ljpeg -lz -lmad -lvorbisidec -logg -lbz2 -
# list of directories containing libraries, this must be the top level
# containing include and lib
#-------------------------------------------------------------------------------
LIBDIRS := $(PORTLIBS) $(WUT_ROOT)
LIBDIRS := $(PORTLIBS) $(WUT_ROOT) $(WUT_ROOT)/usr
#-------------------------------------------------------------------------------

View File

@ -27,6 +27,7 @@
#include "resources/Resources.h"
#include <gui/sounds/SoundHandler.hpp>
#include "system/memory.h"
#include "system/AsyncDeleter.h"
#include "utils/logger.h"
Application *Application::applicationInstance = NULL;

View File

@ -23,6 +23,7 @@
#include "resources/Resources.h"
#include "utils/utils.h"
#include "Application.h"
#include "system/AsyncDeleter.h"
#include <sysapp/launch.h>

View File

@ -18,6 +18,7 @@
#define _PROGRESS_WINDOW_H_
#include "gui/Gui.h"
#include "system/CMutex.h"
class ProgressWindow : public GuiFrame, public sigslot::has_slots<> {
public:

View File

@ -52,7 +52,7 @@ void AsyncDeleter::executeThread(void) {
//! because otherwise they would block or do invalid access on GUI thread
while(!realDeleteElements.empty()) {
deleteMutex.lock();
AsyncDeleter::Element *element = realDeleteElements.front();
GuiElement *element = realDeleteElements.front();
realDeleteElements.pop();
deleteMutex.unlock();

View File

@ -18,6 +18,7 @@
#define _ASYNC_DELETER_H
#include <queue>
#include <gui/gui.h>
#include "CThread.h"
#include "CMutex.h"
@ -34,7 +35,7 @@ public:
virtual ~Element() {}
};
static void pushForDelete(AsyncDeleter::Element *e) {
static void pushForDelete(GuiElement *e) {
if(!deleterInstance)
deleterInstance = new AsyncDeleter;
@ -52,8 +53,8 @@ private:
void executeThread(void);
bool exitApplication;
std::queue<AsyncDeleter::Element *> deleteElements;
std::queue<AsyncDeleter::Element *> realDeleteElements;
std::queue<GuiElement *> deleteElements;
std::queue<GuiElement *> realDeleteElements;
CMutex deleteMutex;
};