fix(modulo): fix bug that prevented forms from being displayed on Linux
This commit is contained in:
parent
904f24a438
commit
f9b256c1a3
|
@ -457,5 +457,22 @@ fn build_native() {
|
|||
}
|
||||
|
||||
fn main() {
|
||||
println!("cargo:rerun-if-changed=src/x11/native/native.h");
|
||||
println!("cargo:rerun-if-changed=src/sys/interop/interop.h");
|
||||
println!("cargo:rerun-if-changed=src/sys/form/form.cpp");
|
||||
println!("cargo:rerun-if-changed=src/sys/common/mac.h");
|
||||
println!("cargo:rerun-if-changed=src/sys/common/mac.mm");
|
||||
println!("cargo:rerun-if-changed=src/sys/common/common.h");
|
||||
println!("cargo:rerun-if-changed=src/sys/common/common.cpp");
|
||||
println!("cargo:rerun-if-changed=src/sys/welcome/welcome_gui.h");
|
||||
println!("cargo:rerun-if-changed=src/sys/welcome/welcome_gui.cpp");
|
||||
println!("cargo:rerun-if-changed=src/sys/welcome/welcome.cpp");
|
||||
println!("cargo:rerun-if-changed=src/sys/troubleshooting/troubleshooting_gui.h");
|
||||
println!("cargo:rerun-if-changed=src/sys/troubleshooting/troubleshooting_gui.cpp");
|
||||
println!("cargo:rerun-if-changed=src/sys/troubleshooting/troubleshooting.cpp");
|
||||
println!("cargo:rerun-if-changed=src/sys/search/search.cpp");
|
||||
println!("cargo:rerun-if-changed=src/sys/wizard/wizard.cpp");
|
||||
println!("cargo:rerun-if-changed=src/sys/wizard/wizard_gui.cpp");
|
||||
println!("cargo:rerun-if-changed=src/sys/wizard/wizard_gui.h");
|
||||
build_native();
|
||||
}
|
||||
|
|
|
@ -26,9 +26,8 @@
|
|||
#include "mac.h"
|
||||
#endif
|
||||
|
||||
void setFrameIcon(const char * iconPath, wxFrame * frame) {
|
||||
if (iconPath) {
|
||||
wxString iconPath(iconPath);
|
||||
void setFrameIcon(wxString iconPath, wxFrame * frame) {
|
||||
if (!iconPath.IsEmpty()) {
|
||||
wxBitmapType imgType = wxICON_DEFAULT_TYPE;
|
||||
|
||||
#ifdef __WXMSW__
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include <wx/wx.h>
|
||||
#endif
|
||||
|
||||
void setFrameIcon(const char * iconPath, wxFrame * frame);
|
||||
void setFrameIcon(wxString iconPath, wxFrame * frame);
|
||||
|
||||
void Activate(wxFrame * frame);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user