#include "wx/clrpicker.h"
-#include "wx/gtk/private.h"
-
-#include <gdk/gdk.h>
#include <gtk/gtk.h>
// ============================================================================
{
// update the m_colour member of the wxColourButton
wxASSERT(p);
- gtk_color_button_get_color(widget, p->GetGdkColor());
+ GdkColor gdkColor;
+ gtk_color_button_get_color(widget, &gdkColor);
+ p->SetGdkColor(gdkColor);
// fire the colour-changed event
wxColourPickerEvent event(p, p->GetId(), p->GetColour());
if (!gtk_check_version(2,4,0))
{
m_needParent = true;
+ m_acceptsFocus = true;
if (!PreCreation( parent, pos, size ) ||
!wxControl::CreateBase(parent, id, pos, size, style, validator, name))