]> git.saurik.com Git - wxWidgets.git/commitdiff
A few compile things.
authorRobert Roebling <robert@roebling.de>
Sun, 11 Jul 1999 15:56:57 +0000 (15:56 +0000)
committerRobert Roebling <robert@roebling.de>
Sun, 11 Jul 1999 15:56:57 +0000 (15:56 +0000)
  Changed resizing of multi-line text ctrl.
  Augmented beta version to 8.
  Distribution things.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2981 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

19 files changed:
distrib/gtk/copy_src
distrib/motif/copy_src
distrib/wine/copy_src
include/wx/busyinfo.h
include/wx/html/Makefile.am
include/wx/log.h
include/wx/version.h
include/wx/zipstream.h
src/common/valtext.cpp
src/common/wfstream.cpp
src/common/zipstream.cpp
src/common/zstream.cpp
src/generic/busyinfo.cpp
src/gtk/bmpbuttn.cpp
src/gtk/notebook.cpp
src/gtk/win_gtk.c
src/gtk1/bmpbuttn.cpp
src/gtk1/notebook.cpp
src/gtk1/win_gtk.c

index 67c68fa076dd1d1f85042d5a6c2a490f9fc21878..10d0e2562e21ac081df01985978858519d40d7c8 100755 (executable)
@@ -68,6 +68,13 @@ cp Makefile.am ~/wxgtk_dist/wxGTK/include/wx/generic
 cp Makefile.in ~/wxgtk_dist/wxGTK/include/wx/generic
 cd ..
 
+mkdir ~/wxgtk_dist/wxGTK/include/wx/html
+cd html
+cp *.h ~/wxgtk_dist/wxGTK/include/wx/html
+cp Makefile.am ~/wxgtk_dist/wxGTK/include/wx/html
+cp Makefile.in ~/wxgtk_dist/wxGTK/include/wx/html
+cd ..
+
 mkdir ~/wxgtk_dist/wxGTK/include/wx/unix
 cd unix
 cp *.h ~/wxgtk_dist/wxGTK/include/wx/unix
@@ -154,6 +161,15 @@ mkdir ~/wxgtk_dist/wxGTK/src/unix
 cp *.cpp ~/wxgtk_dist/wxGTK/src/unix
 cd ..
 
+cd html
+mkdir ~/wxgtk_dist/wxGTK/src/html
+cp *.cpp ~/wxgtk_dist/wxGTK/src/html
+cp *.h ~/wxgtk_dist/wxGTK/src/html
+cd bitmaps
+mkdir ~/wxgtk_dist/wxGTK/src/html/bitmaps
+cp *.xpm ~/wxgtk_dist/wxGTK/src/html/bitmaps
+cd ../..
+
 cd generic
 mkdir ~/wxgtk_dist/wxGTK/src/generic
 cp *.cpp ~/wxgtk_dist/wxGTK/src/generic
@@ -776,4 +792,4 @@ cp README.txt ~/wxgtk_dist/wxGTK/utils/wxPython
 cp Setup ~/wxgtk_dist/wxGTK/utils/wxPython/src
 
 cd ~/wxgtk_dist
-tar ch wxGTK | gzip -f9 > wxGTK-2.1.0-b7.tgz
+tar ch wxGTK | gzip -f9 > wxGTK-2.1.0-b7b.tgz
index 14714a56e9666c5e23f46a49b1b7a9baf96619ff..5c4a48832222c4b8ce55dbc721ebc0ead001a4d6 100755 (executable)
@@ -68,6 +68,13 @@ cp Makefile.am ~/wxmotif_dist/wxMotif/include/wx/generic
 cp Makefile.in ~/wxmotif_dist/wxMotif/include/wx/generic
 cd ..
 
+mkdir ~/wxgtk_dist/wxGTK/include/wx/html
+cd html
+cp *.h ~/wxgtk_dist/wxGTK/include/wx/html
+cp Makefile.am ~/wxgtk_dist/wxGTK/include/wx/html
+cp Makefile.in ~/wxgtk_dist/wxGTK/include/wx/html
+cd ..
+
 mkdir ~/wxmotif_dist/wxMotif/include/wx/unix
 cd unix
 cp *.h ~/wxmotif_dist/wxMotif/include/wx/unix
@@ -149,6 +156,15 @@ cp extended.c ~/wxmotif_dist/wxMotif/src/common
 cp *.cpp ~/wxmotif_dist/wxMotif/src/common
 cd ..
 
+cd html
+mkdir ~/wxgtk_dist/wxGTK/src/html
+cp *.cpp ~/wxgtk_dist/wxGTK/src/html
+cp *.h ~/wxgtk_dist/wxGTK/src/html
+cd bitmaps
+mkdir ~/wxgtk_dist/wxGTK/src/html/bitmaps
+cp *.xpm ~/wxgtk_dist/wxGTK/src/html/bitmaps
+cd ../..
+
 cd unix
 mkdir ~/wxmotif_dist/wxMotif/src/unix
 cp *.cpp ~/wxmotif_dist/wxMotif/src/unix
index 3b599fce1edd9a4faa0045e39cbae679db5d79b9..6811a306174d65895b201eede1a6627e85cda321 100755 (executable)
@@ -68,6 +68,13 @@ cp Makefile.am ~/wxwine_dist/wxWINE/include/wx/generic
 cp Makefile.in ~/wxwine_dist/wxWINE/include/wx/generic
 cd ..
 
+mkdir ~/wxgtk_dist/wxGTK/include/wx/html
+cd html
+cp *.h ~/wxgtk_dist/wxGTK/include/wx/html
+cp Makefile.am ~/wxgtk_dist/wxGTK/include/wx/html
+cp Makefile.in ~/wxgtk_dist/wxGTK/include/wx/html
+cd ..
+
 mkdir ~/wxwine_dist/wxWINE/include/wx/unix
 cd unix
 cp *.h ~/wxwine_dist/wxWINE/include/wx/unix
@@ -149,6 +156,15 @@ cp extended.c ~/wxwine_dist/wxWINE/src/common
 cp *.cpp ~/wxwine_dist/wxWINE/src/common
 cd ..
 
+cd html
+mkdir ~/wxgtk_dist/wxGTK/src/html
+cp *.cpp ~/wxgtk_dist/wxGTK/src/html
+cp *.h ~/wxgtk_dist/wxGTK/src/html
+cd bitmaps
+mkdir ~/wxgtk_dist/wxGTK/src/html/bitmaps
+cp *.xpm ~/wxgtk_dist/wxGTK/src/html/bitmaps
+cd ../..
+
 cd unix
 mkdir ~/wxwine_dist/wxWINE/src/unix
 cp *.cpp ~/wxwine_dist/wxWINE/src/unix
index 33e18822245bfab99f2cbc312d3fd4c5b7009a67..be907a80cdfc913979d0e5b54e9dffe5fd1056a3 100644 (file)
@@ -3,6 +3,7 @@
 // Purpose:     Information window (when app is busy)
 // Author:      Vaclav Slavik
 // Copyright:   (c) 1999 Vaclav Slavik
+// RCS-ID:      $Id$
 // Licence:     wxWindows Licence
 /////////////////////////////////////////////////////////////////////////////
 
 #define __INFOWIN_H__
 
 #ifdef __GNUG__
-#pragma implementation
+#pragma interface
 #endif
 
-#include <wx/wxprec.h>
+#include "wx/wxprec.h"
 
 #ifdef __BORDLANDC__
 #pragma hdrstop
 #endif
 
-#ifndef WXPRECOMP
-#include <wx/wx.h>
-#endif
+#include "wx/frame.h"
 
 #if wxUSE_BUSYINFO
 
-#include <wx/dialog.h>
-
-
-
-
 class wxInfoFrame : public wxFrame
 {
     public:
index ed4023095d98333340dd8bd8151d3793b0657def..3611382eb852098917d49dee53a08b8cfd9b8aa6 100644 (file)
@@ -14,6 +14,4 @@ htmlparser.h \
 htmltag.h \
 htmlwin.h \
 htmlwinparser.h \
-mod_templ.h \
-msw \
-version.h
+mod_templ.h
index 72f8d774fb020e1ce411b344f37922d174eb33d9..24292ae8d4d330fd8531a4cd12eac624f66bf074 100644 (file)
@@ -17,6 +17,7 @@
 #endif
 
 #include "wx/setup.h"
+#include "wx/string.h"
 
 // ----------------------------------------------------------------------------
 // forward declarations
index 27dc3a133d5bb6129e8bacb02addc5348d378543..6d3d427b2ae180843d86138400cb020c6ad1c78f 100644 (file)
@@ -18,7 +18,7 @@
 #define wxRELEASE_NUMBER   0
 #define wxVERSION_STRING "wxWindows 2.1.0"
 #define wxVERSION_NUMBER (wxMAJOR_VERSION * 1000) + (wxMINOR_VERSION * 100) + wxRELEASE_NUMBER
-#define wxBETA_NUMBER      7
+#define wxBETA_NUMBER      8
 #define wxVERSION_FLOAT wxMAJOR_VERSION + (wxMINOR_VERSION/10.0) + (wxRELEASE_NUMBER/100.0) + (wxBETA_NUMBER/10000.0)
 
 #endif
index 3e0d1ed06c046383ecb6ebeee38bcc548bf080f1..77074fa97ba8a3a2db9d571f0aefc1256bd5e011 100644 (file)
 #pragma interface
 #endif
 
-#if wxUSE_ZLIB && wxUSE_STREAMS && wxUSE_ZIPSTREAM
+#include "wx/defs.h"
 
-#include <wx/stream.h>
+#if wxUSE_STREAMS && wxUSE_ZIPSTREAM && wxUSE_ZLIB 
+
+#include "wx/stream.h"
 
 //--------------------------------------------------------------------------------
 // wxZipInputStream
@@ -48,9 +50,11 @@ class WXDLLEXPORT wxZipInputStream : public wxInputStream
 };
 
 
-#endif // 
+#endif 
+   // wxUSE_STREAMS && wxUSE_ZIPSTREAM && wxUSE_ZLIB 
 
-#endif // __ZIPSTREAM_H__
+#endif 
+   // __ZIPSTREAM_H__
 
 
 
index a3b027ea0acf5160d7c374450a0dcc566da5ec03..f891889826b97db693fe8897702d9fea694522b2 100644 (file)
   #pragma hdrstop
 #endif
 
-#ifndef WX_PRECOMP
-  #include "wx/defs.h"
-#endif
-
 #if wxUSE_VALIDATORS
 
 #ifndef WX_PRECOMP
index 4bae72adc7e5c3a80090f382f41d7eca6f131731..599c2f2fad493e41c3291d6f4b14d2d08a305554 100644 (file)
   #pragma hdrstop
 #endif
 
-#ifndef WX_PRECOMP
-  #include "wx/defs.h"
-#endif
-
 #if wxUSE_STREAMS && wxUSE_FILE
 
 #include <stdio.h>
-#include <wx/stream.h>
-#include <wx/wfstream.h>
+#include "wx/stream.h"
+#include "wx/wfstream.h"
 
 // ----------------------------------------------------------------------------
 // wxFileInputStream
index 7530f939f332bdb611b863f0c6799d58dfa6fc38..f117a8c9de9160e0c683dbffed8b6049990b3c92 100644 (file)
@@ -7,29 +7,25 @@
 /////////////////////////////////////////////////////////////////////////////
 
 #ifdef __GNUG__
-#pragma implementation
+#pragma implementation "zipstream.h"
 #endif
 
-#include <wx/wxprec.h>
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
 
-#ifdef __BORDLANDC__
-#pragma hdrstop
+#ifdef __BORLANDC__
+  #pragma hdrstop
 #endif
 
-#ifndef WXPRECOMP
-#include <wx/wx.h>
-#endif
-
-#if wxUSE_ZLIB && wxUSE_STREAMS && wxUSE_ZIPSTREAM
+#if wxUSE_STREAMS && wxUSE_ZIPSTREAM && wxUSE_ZLIB 
 
-#include <wx/stream.h>
-#include <wx/wfstream.h>
-#include <wx/zipstream.h>
+#include "wx/log.h"
+#include "wx/intl.h"
+#include "wx/stream.h"
+#include "wx/wfstream.h"
+#include "wx/zipstream.h"
 #include "unzip.h"
 
-
-
-
 wxZipInputStream::wxZipInputStream(const wxString& archive, const wxString& file) : wxInputStream()
 {
     unz_file_info zinfo;
@@ -37,17 +33,21 @@ wxZipInputStream::wxZipInputStream(const wxString& archive, const wxString& file
     m_Pos = 0;
     m_Size = 0;
     m_Archive = (void*) unzOpen(archive);
-    if (m_Archive == NULL) {
+    if (m_Archive == NULL) 
+    {
         m_lasterror = wxStream_READ_ERR;
         return;
     }
-    if (unzLocateFile((unzFile)m_Archive, file, 0) != UNZ_OK) {
+    if (unzLocateFile((unzFile)m_Archive, file, 0) != UNZ_OK) 
+    {
         m_lasterror = wxStream_READ_ERR;
         return;
     }
-    unzGetCurrentFileInfo((unzFile)m_Archive, &zinfo, NULL, 0, NULL, 0, NULL, 0);
+    
+    unzGetCurrentFileInfo((unzFile)m_Archive, &zinfo, (char*) NULL, 0, (void*) NULL, 0, (char*) NULL, 0);
 
-    if (unzOpenCurrentFile((unzFile)m_Archive) != UNZ_OK) {
+    if (unzOpenCurrentFile((unzFile)m_Archive) != UNZ_OK) 
+    {
         m_lasterror = wxStream_READ_ERR;
         return;
     }
@@ -58,7 +58,8 @@ wxZipInputStream::wxZipInputStream(const wxString& archive, const wxString& file
 
 wxZipInputStream::~wxZipInputStream()
 {
-    if (m_Archive) {
+    if (m_Archive) 
+    {
         if (m_Size != 0)
             unzCloseCurrentFile((unzFile)m_Archive);
         unzClose((unzFile)m_Archive);
@@ -82,7 +83,8 @@ off_t wxZipInputStream::OnSysSeek(off_t seek, wxSeekMode mode)
     off_t nextpos;
     void *buf;
 
-    switch (mode) {
+    switch (mode) 
+    {
         case wxFromCurrent : nextpos = seek + m_Pos; break;
         case wxFromStart : nextpos = seek; break;
         case wxFromEnd : nextpos = m_Size - 1 + seek; break;
@@ -90,14 +92,16 @@ off_t wxZipInputStream::OnSysSeek(off_t seek, wxSeekMode mode)
     }
 
     // cheated seeking :
-    if (nextpos > m_Pos) {
+    if (nextpos > m_Pos) 
+    {
         buf = malloc(nextpos - m_Pos);
         unzReadCurrentFile((unzFile)m_Archive, buf, nextpos -  m_Pos);
         free(buf);
     }
     else if (nextpos < m_Pos) {
         unzCloseCurrentFile((unzFile)m_Archive);
-        if (unzOpenCurrentFile((unzFile)m_Archive) != UNZ_OK) {
+        if (unzOpenCurrentFile((unzFile)m_Archive) != UNZ_OK) 
+       {
             m_lasterror = wxStream_READ_ERR;
             return m_Pos;
         }
@@ -111,3 +115,4 @@ off_t wxZipInputStream::OnSysSeek(off_t seek, wxSeekMode mode)
 }
 
 #endif
+  // wxUSE_STREAMS && wxUSE_ZIPSTREAM && wxUSE_ZLIB 
index c917e493a47f8583e281c87167ac24f2f08f68a6..1ae27ad74c95cb78f00a19d88b6c2deed2e56391 100644 (file)
   #pragma hdrstop
 #endif
 
-#ifndef WX_PRECOMP
-  #include "wx/defs.h"
-#endif
-
 #if wxUSE_ZLIB && wxUSE_STREAMS
 
 #include "wx/zstream.h"
 #include "wx/utils.h"
 #include "wx/intl.h"
 #include "wx/log.h"
-#include "../zlib/zlib.h"
+
+// When using configure, the path must be "zlib.h" I don't know
+// what other ports (wxMac, wxMotif without configure) need here.
+
+#ifdef __WXMSW__
+   #include "..\zlib\zlib.h"
+#else
+   #include "zlib.h"
+#endif
 
 #define ZSTREAM_BUFFER_SIZE 1024
 
index 0b5893dd9f052002a8f3a06baf3b09f4a826622c..d446750d64a8cc7322a105a6666580df6f6a2dde 100644 (file)
@@ -7,58 +7,48 @@
 /////////////////////////////////////////////////////////////////////////////
 
 #ifdef __GNUG__
-#pragma implementation
+#pragma implementation "busyinfo.h"
 #endif
 
-#include <wx/wxprec.h>
+#include "wx/wxprec.h"
 
 #ifdef __BORDLANDC__
 #pragma hdrstop
 #endif
 
-#ifndef WXPRECOMP
-#include <wx/wx.h>
-#endif
-
 #if wxUSE_BUSYINFO
 
 #include "wx/busyinfo.h"
-
-
-
+#include "wx/stattext.h"
+#include "wx/panel.h"
+#include "wx/utils.h"
 
 
 wxInfoFrame::wxInfoFrame(wxWindow *parent, const wxString& message)
     : wxFrame(parent, -1, "", wxPoint(0, 0), wxSize(400, 80), wxTHICK_FRAME | wxSIMPLE_BORDER | wxFRAME_TOOL_WINDOW)
 {
-    wxPanel *p = new wxPanel(this);
-    wxStaticText *s = new wxStaticText(p, -1, message, wxPoint(20, 20), wxSize(360, 40), wxALIGN_CENTER);
+    wxPanel *p = new wxPanel( this );
+    wxStaticText *s = new wxStaticText( p, -1, message, wxPoint(20, 20), wxSize(360, 40), wxALIGN_CENTER );
     Centre(wxBOTH);
-    p -> SetCursor(*wxHOURGLASS_CURSOR);
-    s -> SetCursor(*wxHOURGLASS_CURSOR);
+    p->SetCursor(*wxHOURGLASS_CURSOR);
+    s->SetCursor(*wxHOURGLASS_CURSOR);
 }
 
-
-
-
 wxBusyInfo::wxBusyInfo(const wxString& message) : wxObject()
 {
-    m_InfoFrame = new wxInfoFrame(NULL, message);
-    m_InfoFrame -> Show(TRUE);
+    m_InfoFrame = new wxInfoFrame( (wxWindow*) NULL, message);
+    m_InfoFrame->Show(TRUE);
     wxYield();
-    m_InfoFrame -> Refresh();
+    m_InfoFrame->Refresh();
     wxYield();
 }
 
-
-
 wxBusyInfo::~wxBusyInfo()
 {
-    m_InfoFrame -> Show(FALSE);
-    m_InfoFrame -> Close();
+    m_InfoFrame->Show(FALSE);
+    m_InfoFrame->Close();
     wxYield();
 }
 
-
-
 #endif
+  // wxUSE_BUSYINFO
\ No newline at end of file
index 6661b99efde4bea6a01902825dc0e0e8e9198e81..7bfc477e35f54819d4a66952fbe8d6eae66f1ef9 100644 (file)
@@ -148,14 +148,14 @@ bool wxBitmapButton::Create( wxWindow *parent, wxWindowID id, const wxBitmap &bi
     
         gtk_widget_show( pixmap );
         gtk_container_add( GTK_CONTAINER(m_widget), pixmap );
+       
+        int border = 10;
+        if (style & wxNO_BORDER) border = 4;
+        if (newSize.x == -1) newSize.x = m_bitmap.GetWidth()+border;
+        if (newSize.y == -1) newSize.y = m_bitmap.GetHeight()+border;
+        SetSize( newSize.x, newSize.y );
     }
   
-    int border = 10;
-    if (style & wxNO_BORDER) border = 4;
-    if (newSize.x == -1) newSize.x = m_bitmap.GetWidth()+border;
-    if (newSize.y == -1) newSize.y = m_bitmap.GetHeight()+border;
-    SetSize( newSize.x, newSize.y );
-  
     gtk_signal_connect( GTK_OBJECT(m_widget), "clicked", 
       GTK_SIGNAL_FUNC(gtk_bmpbutton_clicked_callback), (gpointer*)this );
 
index 2ea952be8047cab2675a4917cb41cde45c6aa8d4..6102168a49b792ab0f3782b6c561837224f36a6c 100644 (file)
@@ -515,6 +515,9 @@ bool wxNotebook::InsertPage( int position, wxWindow* win, const wxString& text,
     page->m_box = gtk_hbox_new( FALSE, 0 );
     gtk_container_border_width( GTK_CONTAINER(page->m_box), 2 );
 
+    gtk_signal_connect( GTK_OBJECT(win->m_widget), "size_allocate",
+      GTK_SIGNAL_FUNC(gtk_page_size_callback), (gpointer)win );
+
     if (position < 0)
         gtk_notebook_append_page( notebook, win->m_widget, page->m_box );
     else 
@@ -522,9 +525,6 @@ bool wxNotebook::InsertPage( int position, wxWindow* win, const wxString& text,
 
     page->m_page = (GtkNotebookPage*) g_list_last(notebook->children)->data;
 
-    gtk_signal_connect( GTK_OBJECT(win->m_widget), "size_allocate",
-      GTK_SIGNAL_FUNC(gtk_page_size_callback), (gpointer)win );
-
     /* set the label image */
     page->m_image = imageId;
     
index 1c885094af9c313fc7a753faa208501d680cdc78..dcd694df3fd1261b2dc65a40234456485e595fac 100644 (file)
@@ -10,6 +10,7 @@
 #include "wx/gtk/win_gtk.h"
 #include "gtk/gtksignal.h"
 #include "gtk/gtknotebook.h"
+#include "gtk/gtktable.h"
 
 #ifdef __cplusplus
 extern "C" {
@@ -327,7 +328,9 @@ gtk_myfixed_set_size (GtkMyFixed    *myfixed,
 
             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))) ||
+                    /* I don't know why GtkTable is different */
+                    GTK_IS_TABLE(widget))
                {
                     child_allocation.x = child->x;
                     child_allocation.y = child->y;
index 6661b99efde4bea6a01902825dc0e0e8e9198e81..7bfc477e35f54819d4a66952fbe8d6eae66f1ef9 100644 (file)
@@ -148,14 +148,14 @@ bool wxBitmapButton::Create( wxWindow *parent, wxWindowID id, const wxBitmap &bi
     
         gtk_widget_show( pixmap );
         gtk_container_add( GTK_CONTAINER(m_widget), pixmap );
+       
+        int border = 10;
+        if (style & wxNO_BORDER) border = 4;
+        if (newSize.x == -1) newSize.x = m_bitmap.GetWidth()+border;
+        if (newSize.y == -1) newSize.y = m_bitmap.GetHeight()+border;
+        SetSize( newSize.x, newSize.y );
     }
   
-    int border = 10;
-    if (style & wxNO_BORDER) border = 4;
-    if (newSize.x == -1) newSize.x = m_bitmap.GetWidth()+border;
-    if (newSize.y == -1) newSize.y = m_bitmap.GetHeight()+border;
-    SetSize( newSize.x, newSize.y );
-  
     gtk_signal_connect( GTK_OBJECT(m_widget), "clicked", 
       GTK_SIGNAL_FUNC(gtk_bmpbutton_clicked_callback), (gpointer*)this );
 
index 2ea952be8047cab2675a4917cb41cde45c6aa8d4..6102168a49b792ab0f3782b6c561837224f36a6c 100644 (file)
@@ -515,6 +515,9 @@ bool wxNotebook::InsertPage( int position, wxWindow* win, const wxString& text,
     page->m_box = gtk_hbox_new( FALSE, 0 );
     gtk_container_border_width( GTK_CONTAINER(page->m_box), 2 );
 
+    gtk_signal_connect( GTK_OBJECT(win->m_widget), "size_allocate",
+      GTK_SIGNAL_FUNC(gtk_page_size_callback), (gpointer)win );
+
     if (position < 0)
         gtk_notebook_append_page( notebook, win->m_widget, page->m_box );
     else 
@@ -522,9 +525,6 @@ bool wxNotebook::InsertPage( int position, wxWindow* win, const wxString& text,
 
     page->m_page = (GtkNotebookPage*) g_list_last(notebook->children)->data;
 
-    gtk_signal_connect( GTK_OBJECT(win->m_widget), "size_allocate",
-      GTK_SIGNAL_FUNC(gtk_page_size_callback), (gpointer)win );
-
     /* set the label image */
     page->m_image = imageId;
     
index 1c885094af9c313fc7a753faa208501d680cdc78..dcd694df3fd1261b2dc65a40234456485e595fac 100644 (file)
@@ -10,6 +10,7 @@
 #include "wx/gtk/win_gtk.h"
 #include "gtk/gtksignal.h"
 #include "gtk/gtknotebook.h"
+#include "gtk/gtktable.h"
 
 #ifdef __cplusplus
 extern "C" {
@@ -327,7 +328,9 @@ gtk_myfixed_set_size (GtkMyFixed    *myfixed,
 
             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))) ||
+                    /* I don't know why GtkTable is different */
+                    GTK_IS_TABLE(widget))
                {
                     child_allocation.x = child->x;
                     child_allocation.y = child->y;