X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8907154c1a8a6882c6797d1f16393ddfb23e7f3a..f363cee882672e147340240cf0bb194a68e37833:/src/motif/popupwin.cpp diff --git a/src/motif/popupwin.cpp b/src/motif/popupwin.cpp index fd60ed2e11..f4b1c6e9f2 100644 --- a/src/motif/popupwin.cpp +++ b/src/motif/popupwin.cpp @@ -1,19 +1,21 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: popupwin.cpp +// Name: src/motif/popupwin.cpp // Purpose: wxPopupWindow implementation // Author: Mattia barbon // Modified by: // Created: 28.08.03 -// RCS-ID: $Id$ // Copyright: (c) Mattia barbon -// Licence: wxWindows licence +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" #include "wx/popupwin.h" -#include "wx/app.h" + +#ifndef WX_PRECOMP + #include "wx/app.h" +#endif #ifdef __VMS__ #pragma message disable nosimpint @@ -41,11 +43,19 @@ bool wxPopupWindow::Create( wxWindow *parent, int flags ) m_mainWidget = (WXWidget)popup; - SetSize( 100, 100 ); // for child creation to work + wxAddWindowToTable( (Widget) m_mainWidget, this ); + + DoSetSizeIntr( -1, -1, 100, 100, 0, true ); XtSetMappedWhenManaged( popup, False ); XtRealizeWidget( popup ); - + XtManageChild ( popup ); +/* + XtTranslations ptr; + XtOverrideTranslations (popup, + ptr = XtParseTranslationTable (": resize()")); + XtFree ((char *) ptr); +*/ return true; } @@ -56,7 +66,7 @@ bool wxPopupWindow::Show( bool show ) if( show ) { - XtPopup( (Widget)GetMainWidget(), XtGrabNone ); + XtPopup( (Widget)GetMainWidget(), XtGrabNonexclusive ); } else {