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

(-)a/UiaAtkBridge/UiaAtkBridge/Adapter.cs (-5 / +9 lines)
Lines 155-165 namespace UiaAtkBridge Link Here
155
				return role;
155
				return role;
156
			}
156
			}
157
			set {
157
			set {
158
				role = value;
158
				if (role == Atk.Role.Unknown) {
159
				GLib.Timeout.Add (0, new GLib.TimeoutHandler (delegate {
159
					role = base.Role = value;
160
					base.Role = value;
160
				} else {
161
					return false;
161
					role = value;
162
				}));
162
					GLib.Timeout.Add (0, new GLib.TimeoutHandler (delegate {
163
						base.Role = value;
164
						return false;
165
					}));
166
				}
163
			}
167
			}
164
		}
168
		}
165
169
(-)a/UiaAtkBridge/UiaAtkBridge/MenuItem.cs (-2 / +2 lines)
Lines 52-57 namespace UiaAtkBridge Link Here
52
52
53
			textExpert = TextImplementorFactory.GetImplementor (this, provider);
53
			textExpert = TextImplementorFactory.GetImplementor (this, provider);
54
54
55
			Role = Atk.Role.MenuItem;
56
55
			string name = (string) provider.GetPropertyValue (AutomationElementIdentifiers.NameProperty.Id);
57
			string name = (string) provider.GetPropertyValue (AutomationElementIdentifiers.NameProperty.Id);
56
			if (!String.IsNullOrEmpty (name))
58
			if (!String.IsNullOrEmpty (name))
57
				Name = name;
59
				Name = name;
Lines 66-73 namespace UiaAtkBridge Link Here
66
				provider.GetPatternProvider (ExpandCollapsePatternIdentifiers.Pattern.Id);
68
				provider.GetPatternProvider (ExpandCollapsePatternIdentifiers.Pattern.Id);
67
69
68
			actionExpert.Add ("click", "click", null, DoClick);
70
			actionExpert.Add ("click", "click", null, DoClick);
69
			
70
			Role = Atk.Role.MenuItem;
71
		}
71
		}
72
72
73
		protected MenuItem (IntPtr ptr)
73
		protected MenuItem (IntPtr ptr)
(-)a/UiaAtkBridge/UiaAtkBridge/TopLevelRootItem.cs (-2 / +1 lines)
Lines 37-44 namespace UiaAtkBridge Link Here
37
			//exception: TopLevelRootItem doesn't have an UIA counterpart
37
			//exception: TopLevelRootItem doesn't have an UIA counterpart
38
			: base (null)
38
			: base (null)
39
		{
39
		{
40
			this.Name = Monitor.GetProgramName ();
41
			this.Role = Atk.Role.Application;
40
			this.Role = Atk.Role.Application;
41
			this.Name = Monitor.GetProgramName ();
42
		}
42
		}
43
		
43
		
44
		private static volatile TopLevelRootItem instance = null;
44
		private static volatile TopLevelRootItem instance = null;
45
- 

Return to bug 671580