X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dcf924a345ea8ffbc1cf6b40b5f75c6005e504c0..8736a9a0d3edd5dec7cf179c3ea74249e7b6182d:/src/gtk/statbmp.cpp diff --git a/src/gtk/statbmp.cpp b/src/gtk/statbmp.cpp index 30431837bf..ad12ed7cf2 100644 --- a/src/gtk/statbmp.cpp +++ b/src/gtk/statbmp.cpp @@ -83,4 +83,13 @@ void wxStaticBitmap::SetBitmap( const wxBitmap &bitmap ) } } +wxIcon& wxStaticBitmap::GetIcon() +{ + wxIcon *icon = wxDynamicCast(&m_bitmap, wxIcon); + + if (!icon) return wxNullIcon; + + return *icon; +} + #endif