Added graying out of menus and buttons
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@551 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -93,3 +93,11 @@ void wxButton::SetLabel( const wxString &label )
|
||||
gtk_label_set( g_label, GetLabel() );
|
||||
}
|
||||
|
||||
void wxButton::Enable( bool enable )
|
||||
{
|
||||
wxControl::Enable( enable );
|
||||
GtkButton *bin = GTK_BUTTON( m_widget );
|
||||
GtkWidget *label = bin->child;
|
||||
gtk_widget_set_sensitive( label, enable );
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user