gtk_widget_ensure_style(m_widget);
ApplyWidgetStyle();
- SetInitialBestSize(size);
+ SetInitialSize(size);
}
// ----------------------------------------------------------------------------
return attr;
}
+// ----------------------------------------------------------------------------
+// idle handling
+// ----------------------------------------------------------------------------
+
+void wxControl::OnInternalIdle()
+{
+ if ( GtkShowFromOnIdle() )
+ return;
+
+ if ( GTK_WIDGET_REALIZED(m_widget) )
+ {
+ GTKUpdateCursor();
+
+ GTKSetDelayedFocusIfNeeded();
+ }
+
+ if ( wxUpdateUIEvent::CanUpdate(this) )
+ UpdateWindowUI(wxUPDATE_UI_FROMIDLE);
+}
+
#endif // wxUSE_CONTROLS