]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/clrpicker.cpp
Fix line indices translation in wxGrid::DoEndDragResizeLine().
[wxWidgets.git] / src / gtk / clrpicker.cpp
index 57272a0e88f8d20259fbdebcda22041db9d47925..014285911154883f6d1931c9b0e0c94cd1d753ae 100644 (file)
@@ -43,7 +43,7 @@ static void gtk_clrbutton_setcolor_callback(GtkColorButton *widget,
 
     // fire the colour-changed event
     wxColourPickerEvent event(p, p->GetId(), p->GetColour());
-    p->GetEventHandler()->ProcessEvent(event);
+    p->HandleWindowEvent(event);
 }
 }
 
@@ -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