diff --git a/include/wx/gtk/icon.h b/include/wx/gtk/icon.h index 10bb5b12a2..93dd3b354b 100644 --- a/include/wx/gtk/icon.h +++ b/include/wx/gtk/icon.h @@ -46,7 +46,7 @@ public: wxIcon( char **bits, int width=-1, int height=-1 ); wxIcon(const wxIconLocation& loc) - : wxBitmap(loc.GetFileName(), wxBITMAP_TYPE_XPM) + : wxBitmap(loc.GetFileName(), wxBITMAP_TYPE_ANY) { } diff --git a/include/wx/gtk1/icon.h b/include/wx/gtk1/icon.h index 10bb5b12a2..93dd3b354b 100644 --- a/include/wx/gtk1/icon.h +++ b/include/wx/gtk1/icon.h @@ -46,7 +46,7 @@ public: wxIcon( char **bits, int width=-1, int height=-1 ); wxIcon(const wxIconLocation& loc) - : wxBitmap(loc.GetFileName(), wxBITMAP_TYPE_XPM) + : wxBitmap(loc.GetFileName(), wxBITMAP_TYPE_ANY) { } diff --git a/include/wx/mgl/icon.h b/include/wx/mgl/icon.h index a555b70552..e79f001ae2 100644 --- a/include/wx/mgl/icon.h +++ b/include/wx/mgl/icon.h @@ -44,7 +44,7 @@ public: wxBitmap(filename, (wxBitmapType)type) {} wxIcon(const wxIconLocation& loc) - : wxBitmap(loc.GetFileName(), wxBITMAP_TYPE_ICO) + : wxBitmap(loc.GetFileName(), wxBITMAP_TYPE_ANY) { } diff --git a/include/wx/motif/icon.h b/include/wx/motif/icon.h index 1f2fab60b9..eea99e4055 100644 --- a/include/wx/motif/icon.h +++ b/include/wx/motif/icon.h @@ -42,7 +42,7 @@ public: wxIcon(const wxIconLocation& loc) { - LoadFile(loc.GetFileName()); + LoadFile(loc.GetFileName(), wxBITMAP_TYPE_ANY); } ~wxIcon(); diff --git a/include/wx/x11/icon.h b/include/wx/x11/icon.h index 95ec79f429..1c51c79318 100644 --- a/include/wx/x11/icon.h +++ b/include/wx/x11/icon.h @@ -39,7 +39,7 @@ public: wxIcon( char **bits, int width=-1, int height=-1 ); wxIcon(const wxIconLocation& loc) - : wxBitmap(loc.GetFileName(), wxBITMAP_TYPE_XPM) + : wxBitmap(loc.GetFileName(), wxBITMAP_TYPE_ANY) { }