]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/clrpicker.cpp
guard XTI
[wxWidgets.git] / src / gtk / clrpicker.cpp
index de19aa7c4d8f6a673f79d0e76e6fa687db66f39a..fe56ed4e2b2629cc9424b5571d81e345e6525371 100644 (file)
@@ -68,7 +68,7 @@ bool wxColourButton::Create( wxWindow *parent, wxWindowID id,
 
     m_colour = col;
     m_widget = gtk_color_button_new_with_color( m_colour.GetColor() );
-    gtk_widget_show(m_widget);
+    g_object_ref(m_widget);
 
     // GtkColourButton signals
     g_signal_connect(m_widget, "color-set",