- wxControl::SetLabel( label );
- GtkButton *bin = GTK_BUTTON( m_widget );
- GtkLabel *g_label = GTK_LABEL( bin->child );
- gtk_label_set( g_label, GetLabel() );
+ wxCHECK_RET( m_widget != NULL, _T("invalid button") );
+
+ wxControl::SetLabel( label );
+
+ gtk_label_set( GTK_LABEL( GTK_BUTTON(m_widget)->child ), GetLabel().mbc_str() );
+}
+
+bool wxButton::Enable( bool enable )
+{
+ if ( !wxControl::Enable( enable ) )
+ return FALSE;
+
+ gtk_widget_set_sensitive( GTK_BUTTON(m_widget)->child, enable );
+
+ return TRUE;