]> git.saurik.com Git - wxWidgets.git/commitdiff
load any files, not only XPMs, in wxIcon(wxIconLocation)
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 21 Jul 2003 12:21:22 +0000 (12:21 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 21 Jul 2003 12:21:22 +0000 (12:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22194 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/gtk/icon.h
include/wx/gtk1/icon.h
include/wx/mgl/icon.h
include/wx/motif/icon.h
include/wx/x11/icon.h

index 10bb5b12a27bcbd7690ec3a9599b7c9c1152b1e3..93dd3b354b1bef77f113c6130df9adfc239fd42b 100644 (file)
@@ -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)
     {
     }
 
index 10bb5b12a27bcbd7690ec3a9599b7c9c1152b1e3..93dd3b354b1bef77f113c6130df9adfc239fd42b 100644 (file)
@@ -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)
     {
     }
 
index a555b7055237666b9fcaaab11205040d8001c2de..e79f001ae235b8f59984e4e819915039cdf9216a 100644 (file)
@@ -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)
     {
     }
 
index 1f2fab60b99e669e0ef34bb4c55c20fab01f8a31..eea99e4055bdb32e8f7bca28b9c92dd40a3e0a88 100644 (file)
@@ -42,7 +42,7 @@ public:
 
     wxIcon(const wxIconLocation& loc)
     {
-        LoadFile(loc.GetFileName());
+        LoadFile(loc.GetFileName(), wxBITMAP_TYPE_ANY);
     }
 
     ~wxIcon();
index 95ec79f429fc35f804d20fbcae2fc3d538289a92..1c51c79318863ff62b4991129c46e435ecd1125d 100644 (file)
@@ -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)
     {
     }