- wxControl::SetLabel( label );
- GtkBin *bin = GTK_BIN( 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() );
+}
+
+void wxButton::Enable( bool enable )
+{
+ wxCHECK_RET( m_widget != NULL, _T("invalid button") );
+
+ wxControl::Enable( enable );
+
+ gtk_widget_set_sensitive( GTK_BUTTON(m_widget)->child, enable );
+}