[Mono-bugs] [Bug 375987] System.Windows. Forms dependency on GTK makes code to crash if it uses ATK# and GTK_MODULES contains 'atk-bridge'

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Jun 12 17:31:35 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=375987

User sanfordarmstrong at gmail.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=375987#c10





--- Comment #10 from Sanford Armstrong <sanfordarmstrong at gmail.com>  2008-06-12 15:31:35 MDT ---
Created an attachment (id=221896)
 --> (https://bugzilla.novell.com/attachment.cgi?id=221896)
Proposed patch to add UIA support to Winforms

This patch does the following:
1. Works around the problem described in this bug by clearing the GTK_MODULES
environment variable before running gtk_init_check (after which it restores the
original value).
2. Reflects into the UIAutomationWinforms assembly to load UIA support (in a
static constructor of Application).  That assembly will do the work of checking
to see whether or not a11y is turned on in the system.  If it can't find that
assembly, nothing happens.
3. Adds an internal static event to Application called PreRun, used in UIA,
fired when Application.Run is called.
4. Adds an internal static event to Application called FormAdded, used in UIA
to enable a11y for new Forms.

Please review, and let me know if I can commit.  Thanks!


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list