}
}
-wxDEFINE_EVENT( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, wxCommandEvent )
+wxDEFINE_EVENT( wxEVT_COMMAND_TOGGLEBUTTON_CLICKED, wxCommandEvent );
// ------------------------------------------------------------------------
// wxBitmapToggleButton
bool wxBitmapToggleButton::Enable(bool enable /*=true*/)
{
+ bool isEnabled = IsEnabled();
+
if (!wxControl::Enable(enable))
return false;
gtk_widget_set_sensitive(GTK_BIN(m_widget)->child, enable);
+ if (!isEnabled && enable)
+ {
+ GTKFixSensitivity();
+ }
+
return true;
}
gtk_button_set_label(GTK_BUTTON(m_widget), wxGTK_CONV(labelGTK));
- ApplyWidgetStyle( false );
+ GTKApplyWidgetStyle( false );
}
bool wxToggleButton::Enable(bool enable /*=true*/)
{
+ bool isEnabled = IsEnabled();
+
if (!wxControl::Enable(enable))
return false;
gtk_widget_set_sensitive(GTK_BIN(m_widget)->child, enable);
+ if (!isEnabled && enable)
+ {
+ GTKFixSensitivity();
+ }
+
return true;
}