Bugzilla – Attachment 319135 Details for
Bug 489941
Implement Atk.Table implementor
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
new version
b489941-hierarchy.diff (text/plain), 2.34 KB, created by
Andres Aragoneses
on 2009-09-21 19:19:17 UTC
(
hide
)
Description:
new version
Filename:
MIME Type:
Creator:
Andres Aragoneses
Created:
2009-09-21 19:19:17 UTC
Size:
2.34 KB
patch
obsolete
>Index: UiaAtkBridge/UiaAtkBridge/TreeItem.cs >=================================================================== >--- UiaAtkBridge/UiaAtkBridge/TreeItem.cs (revision 142342) >+++ UiaAtkBridge/UiaAtkBridge/TreeItem.cs (working copy) >@@ -32,7 +32,7 @@ > namespace UiaAtkBridge > { > >- public class TreeItem : ComponentAdapter, Atk.TextImplementor, Atk.ActionImplementor, >+ public class TreeItem : ComponentParentAdapter, Atk.TextImplementor, Atk.ActionImplementor, > Atk.ImageImplementor, Atk.EditableTextImplementor > { > protected const string EXPAND_OR_CONTRACT_ACTION_NAME = "expand or contract"; >@@ -76,6 +76,12 @@ > editableTextExpert = new EditableTextImplementorHelper (this, this); > } > >+ public override void RaiseStructureChangedEvent (object provider, StructureChangedEventArgs e) >+ { >+ //TODO >+ return; >+ } >+ > protected IToggleProvider ToggleProvider { > get { > return (IToggleProvider) Provider.GetPatternProvider (TogglePatternIdentifiers.Pattern.Id); >@@ -412,7 +418,10 @@ > if (oldValue == ExpandCollapseState.Expanded || newValue == ExpandCollapseState.Expanded) { > bool expanded = (newValue == ExpandCollapseState.Expanded); > NotifyStateChange (Atk.StateType.Expanded, expanded); >- ((Tree)Parent).NotifyRowAdjusted (this, expanded); >+ var parent = Parent; >+ while (!(parent is Tree)) >+ parent = parent.Parent; >+ ((Tree)parent).NotifyRowAdjusted (this, expanded); > } > } else > base.RaiseAutomationPropertyChangedEvent (e); > >Index: UiaAtkBridge/UiaAtkBridge/AutomationBridge.cs >=================================================================== >--- UiaAtkBridge/UiaAtkBridge/AutomationBridge.cs (revision 142342) >+++ UiaAtkBridge/UiaAtkBridge/AutomationBridge.cs (working copy) >@@ -510,10 +513,11 @@ > int parentControlTypeId = (int) > parentProvider.GetPropertyValue (AEIds.ControlTypeProperty.Id); > if (parentControlTypeId == ControlType.Header.Id || >- parentControlTypeId == ControlType.DataItem.Id || >- parentControlTypeId == ControlType.TreeItem.Id) >+ parentControlTypeId == ControlType.DataItem.Id)// || >+ //parentControlTypeId == ControlType.TreeItem.Id) > return GetParentAdapter (parentProvider); > > // For a MenuItem provider, a Menu parent could indicate > // the hidden menu generated when a parent MenuItem is > // expanded. So if grandparent is MenuItem, treat its
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 489941
:
315659
| 319135