diff --git a/src/gtk/button.cpp b/src/gtk/button.cpp index 177356a071..bc4dff9768 100644 --- a/src/gtk/button.cpp +++ b/src/gtk/button.cpp @@ -157,7 +157,7 @@ void wxButton::SetDefault() wxWindow *parent = GetParent(); wxCHECK_RET( parent, _T("button without parent?") ); - wxWindow *winOldDefault = parent->SetDefaultItem(this); + parent->SetDefaultItem(this); GTK_WIDGET_SET_FLAGS( m_widget, GTK_CAN_DEFAULT ); gtk_widget_grab_default( m_widget ); diff --git a/src/gtk1/button.cpp b/src/gtk1/button.cpp index 177356a071..bc4dff9768 100644 --- a/src/gtk1/button.cpp +++ b/src/gtk1/button.cpp @@ -157,7 +157,7 @@ void wxButton::SetDefault() wxWindow *parent = GetParent(); wxCHECK_RET( parent, _T("button without parent?") ); - wxWindow *winOldDefault = parent->SetDefaultItem(this); + parent->SetDefaultItem(this); GTK_WIDGET_SET_FLAGS( m_widget, GTK_CAN_DEFAULT ); gtk_widget_grab_default( m_widget );