Author: toshok
Date: 2006-11-13 15:12:18 -0500 (Mon, 13 Nov 2006)
New Revision: 67786
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
Log:
* XplatUIX11.cs: fix #79917 for window managers which support
_NET_WM_NAME. Leave an XXX for non-compliant wm's, since we're
using XStoreName on the raw utf8, and we need to convert to
COMPOUND_TEXT if it's non-latin1.
2006-11-13 Chris Toshok <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-13 20:07:11 UTC (rev 67785)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/ChangeLog
2006-11-13 20:12:18 UTC (rev 67786)
@@ -1,5 +1,12 @@
2006-11-13 Chris Toshok <[EMAIL PROTECTED]>
+ * XplatUIX11.cs: fix #79917 for window managers which support
+ _NET_WM_NAME. Leave an XXX for non-compliant wm's, since we're
+ using XStoreName on the raw utf8, and we need to convert to
+ COMPOUND_TEXT if it's non-latin1.
+
+2006-11-13 Chris Toshok <[EMAIL PROTECTED]>
+
* Form.cs (set_DialogResult): we need to set closing to false if
we're setting our result to None. fixes bug #79908.
Modified:
trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
===================================================================
--- trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
2006-11-13 20:07:11 UTC (rev 67785)
+++ trunk/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs
2006-11-13 20:12:18 UTC (rev 67786)
@@ -4992,8 +4992,19 @@
}
internal override bool Text(IntPtr handle, string text) {
+ Hwnd hwnd;
+
+ hwnd = Hwnd.ObjectFromHandle(handle);
+
lock (XlibLock) {
- // FIXME - use _NET properties
+ XChangeProperty(DisplayHandle,
hwnd.whole_window, _NET_WM_NAME, UNICODETEXT, 8,
+ PropertyMode.Replace, text,
Encoding.UTF8.GetByteCount (text));
+
+ // XXX this has problems with UTF8.
+ // we need to either use the actual
+ // text if it's latin-1, or convert it
+ // to compound text if it's in a
+ // different charset.
XStoreName(DisplayHandle,
Hwnd.ObjectFromHandle(handle).whole_window, text);
}
return true;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches