From 2ded391d8f1a0724ee0e516eb520ae58d0a6a151 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sun, 22 Feb 2004 21:05:54 +0000 Subject: [PATCH] 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 --- src/gtk/notebook.cpp | 4 +++- src/gtk1/notebook.cpp | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) 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; } -- 2.45.2