gtk_widget_ensure_style(m_widget);
ApplyWidgetStyle();
- SetInitialBestSize(size);
+ SetInitialSize(size);
}
// ----------------------------------------------------------------------------
{
if ( GtkShowFromOnIdle() )
return;
-
- GTKUpdateCursor();
+
+ if ( GTK_WIDGET_REALIZED(m_widget) )
+ {
+ GTKUpdateCursor();
+
+ GTKSetDelayedFocusIfNeeded();
+ }
if ( wxUpdateUIEvent::CanUpdate(this) )
UpdateWindowUI(wxUPDATE_UI_FROMIDLE);