]> git.saurik.com Git - wxWidgets.git/blobdiff - src/html/helpfrm.cpp
seems I forgot to check in these changes to tex2rtf packaging scripts...
[wxWidgets.git] / src / html / helpfrm.cpp
index 07096d4c71357173b7b4478f2b4e93850de98469..34db326bf2ec43197a8d711eb19e32137d3b1fc2 100644 (file)
@@ -243,7 +243,7 @@ bool wxHtmlHelpFrame::Create(wxWindow* parent, wxWindowID id,
 
     GetPosition(&m_Cfg.x, &m_Cfg.y);
 
-    SetIcon(wxArtProvider::GetIcon(wxART_FRAME_ICON, wxART_HELP_BROWSER));
+    SetIcon(wxArtProvider::GetIcon(wxART_HELP, wxART_HELP_BROWSER));
 
     int notebook_page = 0;
 
@@ -1442,6 +1442,13 @@ void wxHtmlHelpFrame::OnCloseWindow(wxCloseEvent& evt)
     GetSize(&m_Cfg.w, &m_Cfg.h);
     GetPosition(&m_Cfg.x, &m_Cfg.y);
 
+#ifdef __WXGTK__
+    if (IsGrabbed())
+    {
+        RemoveGrab();
+    }
+#endif
+    
     if (m_Splitter && m_Cfg.navig_on) m_Cfg.sashpos = m_Splitter->GetSashPosition();
 
     if (m_Config)