]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/clrpicker.cpp
Don't create GtkScrolledWindow if neither wxHSCROLL
[wxWidgets.git] / src / gtk / clrpicker.cpp
index 5ba0324488ddb7623a3cd7ad4a9c179b58a30429..a710f9fa336f7f8df99f13cbbd4a856d3e81b4d9 100644 (file)
@@ -37,7 +37,9 @@ static void gtk_clrbutton_setcolor_callback(GtkColorButton *widget,
 {
     // 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());
@@ -80,7 +82,7 @@ bool wxColourButton::Create( wxWindow *parent, wxWindowID id,
         m_parent->DoAddChild( this );
 
         PostCreation(size);
-        SetBestSize(size);
+        SetInitialSize(size);
     }
     else
         return wxGenericColourButton::Create(parent, id, col, pos, size,