[Kde-bindings] playground/bindings/kimono

Richard Dale Richard_Dale at tipitina.demon.co.uk
Sun Oct 22 10:31:11 UTC 2006


SVN commit 598000 by rdale:

* Add 'QMAINWINDOW_HACK' ifdefs around the QMainWindow hack

CCMAIL: kde-bindings at kde.org



 M  +5 -1      SmokeInvocation.cs  
 M  +4 -0      qyoto.cpp  


--- trunk/playground/bindings/kimono/SmokeInvocation.cs #597999:598000
@@ -148,7 +148,8 @@
 
 		[DllImport("libqyoto", CharSet=CharSet.Ansi)]
 		static extern int qt_metacall(IntPtr obj, int _c, int _id, IntPtr a);
-		
+
+#if QMAINWINDOW_HACK		
 		/// Extra functions for QMainWindow
 		[DllImport("libqyoto", CharSet=CharSet.Ansi)]
 		static extern IntPtr NewQMainWindow();
@@ -158,6 +159,7 @@
 		
 		[DllImport("libqyoto", CharSet=CharSet.Ansi)]
 		static extern IntPtr NewQMainWindow3(IntPtr parent, int flags);
+#endif
 		
 		static void FreeGCHandle(IntPtr handle) {
 			((GCHandle) handle).Free();
@@ -684,6 +686,7 @@
 								callMessage.ArgCount.ToString() );
 #endif
 
+#if QMAINWINDOW_HACK
 			/// Handle special case
 			if (callMessage.MethodBase.Name == "NewQMainWindow") {
 				int ps = callMessage.ArgCount;
@@ -708,6 +711,7 @@
 				}
 				/// If none of the above cases matches, just go on.
 			}
+#endif
 			
 			StackItem[] stack = new StackItem[callMessage.ArgCount+1];
 			
--- trunk/playground/bindings/kimono/qyoto.cpp #597999:598000
@@ -1304,6 +1304,8 @@
 	delete qApp;
 }
 
+#ifdef QMAINWINDOW_HACK
+
 smokeqyoto_object*
 NewQMainWindow()
 {
@@ -1334,5 +1336,7 @@
 	return o;
 }
 
+#endif
+
 }
 



More information about the Kde-bindings mailing list