]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/statbmp.cpp
Update wxWebViewIE::Reload so that reloading without using the cache works and doesn...
[wxWidgets.git] / src / gtk / statbmp.cpp
index aeb95223ec0407ac674d4d0a271a9b85dd27a83d..dc9b6397118c733ae85257194384254ac0c0dca9 100644 (file)
@@ -1,5 +1,5 @@
 /////////////////////////////////////////////////////////////////////////////
-// Name:        statbmp.cpp
+// Name:        src/gtk/statbmp.cpp
 // Purpose:
 // Author:      Robert Roebling
 // Id:          $Id$
@@ -20,8 +20,6 @@
 // wxStaticBitmap
 //-----------------------------------------------------------------------------
 
-IMPLEMENT_DYNAMIC_CLASS(wxStaticBitmap,wxControl)
-
 wxStaticBitmap::wxStaticBitmap(void)
 {
 }
@@ -47,6 +45,7 @@ bool wxStaticBitmap::Create( wxWindow *parent, wxWindowID id, const wxBitmap &bi
     m_bitmap = bitmap;
 
     m_widget = gtk_image_new();
+    g_object_ref(m_widget);
 
     if (bitmap.Ok())
         SetBitmap(bitmap);