]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/statbmp.cpp
improved dialog size which created the listbox a bit too small
[wxWidgets.git] / src / gtk / statbmp.cpp
index ff7fc98b4f1a921331433b32b77144d58bc660b2..ad12ed7cf20e36f4544ee1a55c23ab656aa91903 100644 (file)
@@ -13,6 +13,8 @@
 
 #include "wx/statbmp.h"
 
+#if wxUSE_STATBMP
+
 #include "gdk/gdk.h"
 #include "gtk/gtk.h"
 
@@ -80,3 +82,14 @@ void wxStaticBitmap::SetBitmap( const wxBitmap &bitmap )
         gtk_pixmap_set( GTK_PIXMAP(m_widget), m_bitmap.GetPixmap(), mask );
     }
 }
+
+wxIcon& wxStaticBitmap::GetIcon()
+{
+    wxIcon *icon = wxDynamicCast(&m_bitmap, wxIcon);
+    
+    if (!icon) return wxNullIcon;
+    
+    return *icon;
+}
+
+#endif