[DEV] correct the icon setting

This commit is contained in:
Edouard DUPIN 2015-08-24 22:15:26 +02:00
parent 3653ba1761
commit 33c4783bac
3 changed files with 136 additions and 132 deletions

View File

@ -120,7 +120,8 @@ std::string gale::Application::getTitle() {
}
void gale::Application::setIcon(const std::string& _iconFile) {
gale::Context& context = gale::getContext();
context.setIcon(_iconFile);
}
std::string gale::Application::getIcon() {

View File

@ -96,7 +96,9 @@ extern "C" {
} Hints;
}
// TODO : #include <egami/egami.h>
#ifdef GALE_BUILD_EGAMI
#include <egami/egami.h>
#endif
#include <X11/cursorfont.h>
@ -1060,8 +1062,7 @@ class X11Interface : public gale::Context {
}
/****************************************************************************************/
void setIcon(const std::string& _inputFile) {
// TODO : ...
#if 0
#ifdef GALE_BUILD_EGAMI
egami::Image dataImage;
// load data
if (false == egami::load(dataImage, _inputFile)) {

View File

@ -36,6 +36,8 @@ def create(target):
])
if target.name=="Linux":
myModule.add_src_file('gale/context/X11/Context.cpp')
# check if egami is present in the worktree: this is for the icon parsing ...
myModule.add_optionnal_module_depend('egami', ["c++", "-DGALE_BUILD_EGAMI"])
elif target.name=="Windows":
myModule.add_src_file('gale/context/Windows/Context.cpp')
elif target.name=="Android":