]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/clrpicker.cpp
Add some version checks to help compiling on OSX.
[wxWidgets.git] / src / gtk / clrpicker.cpp
index de19aa7c4d8f6a673f79d0e76e6fa687db66f39a..014285911154883f6d1931c9b0e0c94cd1d753ae 100644 (file)
@@ -68,6 +68,7 @@ bool wxColourButton::Create( wxWindow *parent, wxWindowID id,
 
     m_colour = col;
     m_widget = gtk_color_button_new_with_color( m_colour.GetColor() );
+    g_object_ref(m_widget);
     gtk_widget_show(m_widget);
 
     // GtkColourButton signals