]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/spinbutt.cpp
Work around "possibly uninitialized variable" warning in wxFileName.
[wxWidgets.git] / src / gtk / spinbutt.cpp
index 45138d8ae483481fc4baffeeb43d91499e0eecf1..9155e23d3f1e6c8ad48fcaac207e8e0d74682ceb 100644 (file)
@@ -175,6 +175,18 @@ void wxSpinButton::OnSize( wxSizeEvent &WXUNUSED(event) )
     gtk_widget_set_size_request( m_widget, m_width, m_height );
 }
 
+bool wxSpinButton::Enable( bool enable )
+{
+    if (!base_type::Enable(enable))
+        return false;
+
+    // Work around lack of visual update when enabling
+    if (enable)
+        GTKFixSensitivity(false /* fix even if not under mouse */);
+
+    return true;
+}
+
 void wxSpinButton::GtkDisableEvents() const
 {
     g_signal_handlers_block_by_func(m_widget,