Author: toshok
Date: 2006-11-28 13:46:00 -0500 (Tue, 28 Nov 2006)
New Revision: 68602
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/X11Hwnd.cs
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/XplatUIX11-new.cs
Log:
2006-11-28 Chris Toshok <[EMAIL PROTECTED]>
* X11Hwnd.cs, XplatUIX11-new.cs: remove spew, and ^M's.
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/ChangeLog
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/ChangeLog
2006-11-28 18:44:28 UTC (rev 68601)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/ChangeLog
2006-11-28 18:46:00 UTC (rev 68602)
@@ -1,3 +1,7 @@
+2006-11-28 Chris Toshok <[EMAIL PROTECTED]>
+
+ * X11Hwnd.cs, XplatUIX11-new.cs: remove spew, and ^M's.
+
2006-11-28 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
* XplatUIX11-new.cs:
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/X11Hwnd.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/X11Hwnd.cs
2006-11-28 18:44:28 UTC (rev 68601)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/X11Hwnd.cs
2006-11-28 18:46:00 UTC (rev 68602)
@@ -266,16 +266,12 @@
int dest_y_return;
IntPtr child;
- Console.Write ("MenuToScreen ({0}, {1}) =>", x, y);
-
Xlib.XTranslateCoordinates (display.Handle,
WholeWindow,
display.RootWindow.Handle,
x, y, out dest_x_return,
out dest_y_return, out child);
x = dest_x_return;
y = dest_y_return;
-
- Console.WriteLine ("({0}, {1})", x, y);
}
public virtual void PropertyChanged (XEvent xevent)
@@ -794,14 +790,14 @@
PerformNCCalc ();
display.SendMessage (Handle, Msg.WM_WINDOWPOSCHANGED,
IntPtr.Zero, IntPtr.Zero);
InvalidateNC ();
- }
-
- [MonoTODO]
- public void RequestAdditionalWM_NCMessages (bool hover, bool
leave)
- {
- // Missing messages won't crash anything so just don't
generate them for the moment.
- // throw new NotImplementedException( );
}
+
+ [MonoTODO]
+ public void RequestAdditionalWM_NCMessages (bool hover, bool
leave)
+ {
+ // Missing messages won't crash anything so just don't
generate them for the moment.
+ // throw new NotImplementedException( );
+ }
public void FrameExtents (out int left, out int top)
{
@@ -1081,15 +1077,12 @@
int dest_y_return;
IntPtr child;
- Console.Write ("ClientToScreen ({0}, {1}) =>", x, y);
Xlib.XTranslateCoordinates (display.Handle,
ClientWindow,
display.RootWindow.Handle,
x, y, out dest_x_return,
out dest_y_return, out child);
x = dest_x_return;
y = dest_y_return;
-
- Console.WriteLine ("({0}, {1})", x, y);
}
public void ScreenToClient (ref int x, ref int y)
@@ -1098,15 +1091,12 @@
int dest_y_return;
IntPtr child;
- Console.Write ("ScreenToClient ({0}, {1}) =>", x, y);
Xlib.XTranslateCoordinates (display.Handle,
display.RootWindow.Handle,
ClientWindow,
x, y, out dest_x_return,
out dest_y_return, out child);
x = dest_x_return;
y = dest_y_return;
-
- Console.WriteLine ("({0}, {1})", x, y);
}
@@ -1116,22 +1106,19 @@
int dest_y_return;
IntPtr child;
- Console.Write ("ScreenToMenu ({0}, {1}) =>", x, y);
-
- Console.WriteLine ("x,y = {0},{1}", X, Y);
-
Xlib.XTranslateCoordinates (display.Handle,
display.RootWindow.Handle,
WholeWindow,
x, y, out dest_x_return,
out dest_y_return, out child);
x = dest_x_return;
y = dest_y_return;
-
- Console.WriteLine ("({0}, {1})", x, y);
}
public void ScrollWindow (Rectangle area, int XAmount, int
YAmount, bool with_children)
{
+ try {
+ Queue.Lock ();
+
IntPtr gc;
XGCValues gc_values;
@@ -1210,6 +1197,10 @@
}
Xlib.XFreeGC (display.Handle, gc);
+ }
+ finally {
+ Queue.Unlock ();
+ }
}
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/XplatUIX11-new.cs
===================================================================
---
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/XplatUIX11-new.cs
2006-11-28 18:44:28 UTC (rev 68601)
+++
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms.X11Internal/XplatUIX11-new.cs
2006-11-28 18:46:00 UTC (rev 68602)
@@ -687,16 +687,16 @@
{
display.Flush ();
ThreadQueue(Thread.CurrentThread).PostQuitState = true;
- }
-
- [MonoTODO]
- internal override void RequestAdditionalWM_NCMessages (IntPtr
handle, bool hover, bool leave)
- {
- X11Hwnd hwnd = (X11Hwnd)Hwnd.ObjectFromHandle(handle);
-
- if (hwnd != null)
- hwnd.RequestAdditionalWM_NCMessages (hover,
leave);
}
+
+ [MonoTODO]
+ internal override void RequestAdditionalWM_NCMessages (IntPtr
handle, bool hover, bool leave)
+ {
+ X11Hwnd hwnd = (X11Hwnd)Hwnd.ObjectFromHandle(handle);
+
+ if (hwnd != null)
+ hwnd.RequestAdditionalWM_NCMessages (hover,
leave);
+ }
internal override void RequestNCRecalc (IntPtr handle)
{
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches