X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ff7b1510ea7f7855091df83d75a44415dc1cba18..9c039d08bfbb59c0abcbc705fb49f9b2cb321edf:/src/gtk1/icon.cpp?ds=sidebyside 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; +} +