Removed bug that made wxWindow call OnPaint

twice and return wrog values for GetClientSize()


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2999 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robert Roebling
1999-07-14 15:36:37 +00:00
parent 4705ee2dde
commit 98d3fdbedd
4 changed files with 134 additions and 110 deletions

View File

@@ -10,6 +10,7 @@
#include "wx/gtk/win_gtk.h"
#include "gtk/gtksignal.h"
#include "gtk/gtknotebook.h"
#include "gtk/gtkscrolledwindow.h"
#ifdef __cplusplus
extern "C" {
@@ -536,15 +537,15 @@ gtk_myfixed_size_allocate (GtkWidget *widget,
child = children->data;
children = children->next;
/* please look at the text in wxWindow::DoSetSize() on why the
test GTK_WIDGET_REALIZED() has to be here */
if (GTK_WIDGET_VISIBLE (child->widget))
{
/* please look at the text in wxWindow::DoSetSize() on why the
test GTK_WIDGET_REALIZED() has to be here */
/* if (GTK_IS_NOTEBOOK(child->widget) && !GTK_WIDGET_REALIZED(child->widget))
{
gtk_widget_queue_resize( child->widget );
}
else */
else */
{
child_allocation.x = child->x;
child_allocation.y = child->y;