#include "wx/gtk/win_gtk.h"
#include "gtk/gtksignal.h"
#include "gtk/gtknotebook.h"
+#include "gtk/gtkscrolledwindow.h"
#ifdef __cplusplus
extern "C" {
if (GTK_WIDGET_VISIBLE (widget) && GTK_WIDGET_VISIBLE (myfixed))
{
- if ((child->width > 1) && (child->height > 1) && (GTK_WIDGET_REALIZED(widget)))
+ if ( (child->width > 1) &&
+ (child->height > 1) &&
+ !(GTK_WIDGET_REALIZED(widget) && GTK_IS_NOTEBOOK(widget)) )
{
child_allocation.x = child->x;
child_allocation.y = child->y;
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;