]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/toplevel.cpp
Maybe fixed assertion when using built-in searching non-string columns
[wxWidgets.git] / src / gtk / toplevel.cpp
index 637d1fef67d7b71e3eede6aedfeb094fa2a57bf7..df40a213c3714397b760c700850416669749357d 100644 (file)
@@ -358,6 +358,8 @@ gtk_frame_map_callback( GtkWidget*,
         eventShow.SetEventObject(win);
         win->GetEventHandler()->ProcessEvent(eventShow);
     }
+    // restore focus-on-map setting in case ShowWithoutActivating() was called
+    gtk_window_set_focus_on_map(GTK_WINDOW(win->m_widget), true);
     return false;
 }
 }
@@ -889,6 +891,15 @@ bool wxTopLevelWindowGTK::Show( bool show )
     return change;
 }
 
+void wxTopLevelWindowGTK::ShowWithoutActivating()
+{
+    if (!m_isShown)
+    {
+        gtk_window_set_focus_on_map(GTK_WINDOW(m_widget), false);
+        Show(true);
+    }
+}
+
 void wxTopLevelWindowGTK::Raise()
 {
     gtk_window_present( GTK_WINDOW( m_widget ) );