View | Details | Raw Unified | Return to bug 457787
Collapse All | Expand All

(-)UiaAtkBridge/UiaAtkBridge/Monitor.cs (+15 lines)
Lines 65-70 Link Here
65
		{
65
		{
66
			GLib.GType.Init();
66
			GLib.GType.Init();
67
			
67
			
68
			PreventGailInitialization ();
69
			
68
			Atk.Util.GetRootHandler = ReturnTopLevel;
70
			Atk.Util.GetRootHandler = ReturnTopLevel;
69
			
71
			
70
			Atk.Util.GetToolkitNameHandler = GetAssemblyName;
72
			Atk.Util.GetToolkitNameHandler = GetAssemblyName;
Lines 77-82 Link Here
77
			Atk.Util.AddKeyEventListenerHandler = AddKeyEventListener;
79
			Atk.Util.AddKeyEventListenerHandler = AddKeyEventListener;
78
		}
80
		}
79
81
82
		string atk_bridge_envvar_name = "NO_AT_BRIDGE";
83
		string gail_envvar_name = "NO_GAIL";
84
		
85
		// we need to set this because MWF happens to depend on gtk+ (this may change on the future)
86
		void PreventGailInitialization ()
87
		{
88
			// Solution for gtk+ >= 2.14
89
			// see https://bugzilla.novell.com/show_bug.cgi?id=457787
90
			Environment.SetEnvironmentVariable (atk_bridge_envvar_name, "1");
91
			Environment.SetEnvironmentVariable (gail_envvar_name, "1");
92
		}
93
		
80
		private bool isApplicationStarted = false;
94
		private bool isApplicationStarted = false;
81
		
95
		
82
		public void ApplicationStarts ()
96
		public void ApplicationStarts ()
Lines 88-93 Link Here
88
			AutoResetEvent sync = GLibHacks.Invoke (delegate (object sender, EventArgs args) {
102
			AutoResetEvent sync = GLibHacks.Invoke (delegate (object sender, EventArgs args) {
89
				RegisterWindowSignals ();
103
				RegisterWindowSignals ();
90
104
105
				Environment.SetEnvironmentVariable (atk_bridge_envvar_name, "0");
91
				LaunchAtkBridge ();
106
				LaunchAtkBridge ();
92
			});
107
			});
93
			sync.WaitOne ();
108
			sync.WaitOne ();

Return to bug 457787