X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff7b1510ea7f7855091df83d75a44415dc1cba18..520e470fdd0daef09c77938db642e4583933c90d:/src/gtk1/icon.cpp diff --git a/src/gtk1/icon.cpp b/src/gtk1/icon.cpp index 4788409a40..33d85df2ac 100644 --- a/src/gtk1/icon.cpp +++ b/src/gtk1/icon.cpp @@ -20,8 +20,29 @@ IMPLEMENT_DYNAMIC_CLASS(wxIcon,wxBitmap) -wxIcon::wxIcon( char **bits, int WXUNUSED(width), int WXUNUSED(height) ) : - wxBitmap( bits ) +wxIcon::wxIcon( char **bits, int WXUNUSED(width), int WXUNUSED(height) ) : + wxBitmap( bits ) { } +wxIcon::wxIcon() : wxBitmap() +{ +} + +wxIcon::wxIcon(const wxIcon& icon) : wxBitmap() +{ + Ref(icon); +} + +wxIcon::wxIcon(const wxIcon* icon) : wxBitmap() +{ + if (icon) Ref(*icon); +} + +wxIcon& wxIcon::operator = (const wxIcon& icon) +{ + if (*this == icon) return (*this); + Ref(icon); + return *this; +} +