From: Vadim Zeitlin Date: Thu, 8 Feb 2001 15:54:51 +0000 (+0000) Subject: (blind) fixes for Motif compilation X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/cce442ba7c8506fda1b1bf350390ef06b0863150 (blind) fixes for Motif compilation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9331 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/motif/icon.h b/include/wx/motif/icon.h index d1176761c5..8042fb8f06 100644 --- a/include/wx/motif/icon.h +++ b/include/wx/motif/icon.h @@ -57,8 +57,6 @@ public: bool LoadFile(const wxString& name, long flags = wxBITMAP_TYPE_XPM, int desiredWidth = -1, int desiredHeight = -1); - bool LoadFile(const wxString& name, long type = wxBITMAP_TYPE_XBM) - { return wxBitmap::LoadFile(name, type); } inline wxIcon& operator = (const wxIcon& icon) { if (*this == icon) return (*this); Ref(icon); return *this; } inline bool operator == (const wxIcon& icon) const { return m_refData == icon.m_refData; } diff --git a/src/motif/window.cpp b/src/motif/window.cpp index 456b75c715..30f5695703 100644 --- a/src/motif/window.cpp +++ b/src/motif/window.cpp @@ -2099,22 +2099,21 @@ static void wxCanvasInputEvent(Widget drawingArea, { // I have a dclick canvas->SetLastClick(0, ts); - switch ( eventType ) - { - case wxEVT_LEFT_DOWN: - wxevent.SetEventType(wxEVT_LEFT_DCLICK); - break; - case wxEVT_MIDDLE_DOWN: - wxevent.SetEventType(wxEVT_MIDDLE_DCLICK); - break; - case wxEVT_RIGHT_DOWN: - wxevent.SetEventType(wxEVT_RIGHT_DCLICK); - break; - default : - break; + wxEventType typeDouble; + if ( eventType == wxEVT_LEFT_DOWN ) + typeDouble = wxEVT_LEFT_DCLICK; + else if ( eventType == wxEVT_MIDDLE_DOWN ) + typeDouble = wxEVT_MIDDLE_DCLICK; + else if ( eventType == wxEVT_RIGHT_DOWN ) + typeDouble = wxEVT_RIGHT_DCLICK; + else + typeDouble = wxEVT_NULL; + + if ( typeDouble != wxEVT_NULL ) + { + wxevent.SetEventType(typeDouble); } - } else {