X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/93cf77c076b699e8e0b3b0049bd4f80de15997dd..a8cfd0cbf1899a3a41fe21a202d40f5448702b5a:/src/stubs/control.cpp diff --git a/src/stubs/control.cpp b/src/stubs/control.cpp index 651b272953..b141a80ff1 100644 --- a/src/stubs/control.cpp +++ b/src/stubs/control.cpp @@ -37,7 +37,7 @@ wxControl::~wxControl() wxWindow *parent = (wxWindow *)GetParent(); if (parent) { - if (parent->GetDefaultItem() == this) + if (parent->GetDefaultItem() == (wxButton*) this) parent->SetDefaultItem(NULL); } } @@ -53,17 +53,6 @@ wxString wxControl::GetLabel() const return wxString(""); } -/* - * Allocates control IDs within the appropriate range - */ - -int NewControlId() -{ - static int s_controlId = 0; - s_controlId ++; - return s_controlId; -} - void wxControl::ProcessCommand (wxCommandEvent & event) { // Tries: @@ -80,11 +69,6 @@ void wxControl::ProcessCommand (wxCommandEvent & event) } } -void wxControl::SetClientSize (int width, int height) -{ - SetSize (-1, -1, width, height); -} - void wxControl::Centre (int direction) { int x, y, width, height, panel_width, panel_height, new_x, new_y;