From: Václav Slavík Date: Sun, 22 Feb 2004 21:05:54 +0000 (+0000) Subject: added reference to the bug in case somebody wanted to remove this X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2ded391d8f1a0724ee0e516eb520ae58d0a6a151?ds=sidebyside added reference to the bug in case somebody wanted to remove this git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25924 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/notebook.cpp b/src/gtk/notebook.cpp index 8c7c858c13..8b23e3256e 100644 --- a/src/gtk/notebook.cpp +++ b/src/gtk/notebook.cpp @@ -226,7 +226,9 @@ static void wxInsertChildInNotebook( wxNotebook* parent, wxWindow* child ) { // Hack alert! We manually set the child window // parent field so that GTK can query the - // notebook's style and font. + // notebook's style and font. Without that, GetBestSize could return + // incorrect size, see bug #901694 for details + // (http://sourceforge.net/tracker/?func=detail&aid=901694&group_id=9863&atid=109863) child->m_widget->parent = parent->m_widget; } diff --git a/src/gtk1/notebook.cpp b/src/gtk1/notebook.cpp index 8c7c858c13..8b23e3256e 100644 --- a/src/gtk1/notebook.cpp +++ b/src/gtk1/notebook.cpp @@ -226,7 +226,9 @@ static void wxInsertChildInNotebook( wxNotebook* parent, wxWindow* child ) { // Hack alert! We manually set the child window // parent field so that GTK can query the - // notebook's style and font. + // notebook's style and font. Without that, GetBestSize could return + // incorrect size, see bug #901694 for details + // (http://sourceforge.net/tracker/?func=detail&aid=901694&group_id=9863&atid=109863) child->m_widget->parent = parent->m_widget; }