Use default constructors for wxSize/Point/Rect.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31904 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2005-02-10 21:33:56 +00:00
parent 1c6dd11c98
commit 2997ca30d6
23 changed files with 87 additions and 88 deletions

View File

@@ -282,7 +282,7 @@ bool wxPopupTransientWindow::Show( bool show )
if (!show)
{
gdk_pointer_ungrab( (guint32)GDK_CURRENT_TIME );
gtk_grab_remove( m_widget );
}
#endif
@@ -295,12 +295,12 @@ bool wxPopupTransientWindow::Show( bool show )
#endif
bool ret = wxPopupWindow::Show( show );
#ifdef __WXGTK__
if (show)
{
gtk_grab_add( m_widget );
gdk_pointer_grab( m_widget->window, TRUE,
(GdkEventMask)
(GDK_BUTTON_PRESS_MASK |
@@ -317,7 +317,7 @@ bool wxPopupTransientWindow::Show( bool show )
if (show)
{
Window xwindow = (Window) m_clientWindow;
/* int res =*/ XGrabPointer(wxGlobalDisplay(), xwindow,
True,
ButtonPressMask | ButtonReleaseMask | ButtonMotionMask | EnterWindowMask | LeaveWindowMask | PointerMotionMask,
@@ -382,7 +382,7 @@ bool wxPopupComboWindow::Create(wxComboControl *parent)
void wxPopupComboWindow::PositionNearCombo()
{
// the origin point must be in screen coords
wxPoint ptOrigin = m_combo->ClientToScreen(wxPoint(0, 0));
wxPoint ptOrigin = m_combo->ClientToScreen(wxPoint());
#if 0 //def __WXUNIVERSAL__
// account for the fact that (0, 0) is not the top left corner of the