Patch #1424 2006-08-28 21:52

afb

Placeholders for wxMac in contrib plugins
Download
1424-Placeholders_f.patch (1.6 KB)
Category
Plugin::Bugfix
Status
Closed
Close date
2006-09-24 00:59
Assigned to
pecan
--- src/plugins/contrib/dragscroll/dragscroll.cpp.orig    2006-08-28 20:58:32.000000000 +0200
+++ src/plugins/contrib/dragscroll/dragscroll.cpp    2006-08-28 22:04:40.000000000 +0200
@@ -1156,5 +1156,18 @@
 }//OnMouseEvent
 #endif //__WXGTK__ scrolling
 // ----------------------------------------------------------------------------
-//   end __WXGTK__ scrolling
+//      MOUSE SCROLLING for __WXMAC__
+// ----------------------------------------------------------------------------
+#ifdef __WXMAC__
+void MyMouseEvents::OnMouseEvent(wxMouseEvent& event)    //Mac
+{
+#warning MyMouseEvents::OnMouseEvent is still TODO
+
+    // pass on the event
+    event.Skip();
+
+}//OnMouseEvent
+#endif //__WXMAC__ scrolling
+// ----------------------------------------------------------------------------
+//   end mouse scrolling
 // ----------------------------------------------------------------------------
--- src/plugins/contrib/keybinder/menuutils.cpp.orig    2006-08-28 20:58:33.000000000 +0200
+++ src/plugins/contrib/keybinder/menuutils.cpp    2006-08-28 22:17:25.000000000 +0200
@@ -217,6 +217,14 @@
 }//RebuildMenuitem
 #endif //#if defined( __WXMSW__ )
 
+#if defined( __WXMAC__ )
+// ----------------------------------------------------------------------------
+void wxMenuCmd::Update(wxMenuItem* pSpecificMenuItem) // for __WXMAC__
+{
+#warning wxMenuCmd::Update is still TODO
+}
+#endif //update for __WXMAC__
+
 // ----------------------------------------------------------------------------
 void wxMenuCmd::Exec(wxObject *origin, wxEvtHandler *client)
 // ----------------------------------------------------------------------------
afb 2006-08-28 21:53

Just so that I can --enable-contrib without it dying in make

pecan 2006-09-16 12:17

I dont understand why you're doing this.

I've been compiling and running both dragscroll and keybinder on my ppc mac for over two months without changes.

could you please indicate what errors you're getting?

pecan

pecan 2006-09-16 12:17

I dont understand why you're doing this.

I've been compiling and running both dragscroll and keybinder on my ppc mac for over two months without changes.

could you please indicate what errors you're getting?

pecan

afb 2006-09-16 13:01

I got link errors, since those functions only had versions for __WXMSW__ and __WXGTK__ - this was just a hack to add stubs for __WXMAC__ too

But if there are no need for them - the better, this was just a workaround

afb 2006-09-17 06:58
pecan 2006-09-24 00:56

I've re-added the MAC fixes for both Dragscroll and Keybinder.

Test under OS X 10.3.