[DEV] correct the icon setting
This commit is contained in:
parent
3653ba1761
commit
33c4783bac
@ -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() {
|
||||
|
@ -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)) {
|
||||
|
@ -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":
|
||||
|
Loading…
x
Reference in New Issue
Block a user