diff options
author | Matt Ward <matt.ward@xamarin.com> | 2015-09-03 13:25:18 +0300 |
---|---|---|
committer | Matt Ward <matt.ward@xamarin.com> | 2015-09-03 13:25:18 +0300 |
commit | 5f6d0c0f6cd8315dc4cf845ef13a3daeec39fa96 (patch) | |
tree | 52fd4ae0a92ac0f2652e88d2718f872c2d4b9ac9 /main/src/core/MonoDevelop.Ide/MonoDevelop.Components.PropertyGrid.Editors | |
parent | efdf70fd8bf21301bb6f5183845a21d16acec8d8 (diff) | |
parent | 3e45d6270e4c8b4e3e31b800519f4efcbb97e79f (diff) |
Merge branch 'master' into roslyn
Conflicts:
version-checks
version.config
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Components.PropertyGrid.Editors')
-rw-r--r-- | main/src/core/MonoDevelop.Ide/MonoDevelop.Components.PropertyGrid.Editors/PropertyTextEditor.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.PropertyGrid.Editors/PropertyTextEditor.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.PropertyGrid.Editors/PropertyTextEditor.cs index 5ea355c5fd..e8956709d0 100644 --- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.PropertyGrid.Editors/PropertyTextEditor.cs +++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Components.PropertyGrid.Editors/PropertyTextEditor.cs @@ -88,6 +88,7 @@ namespace MonoDevelop.Components.PropertyGrid.PropertyEditors // no standard values, so just use an entry else { entry = new Entry (); + entry.IsEditable = !session.Property.IsReadOnly; PackStart (entry, true, true, 0); } @@ -96,9 +97,11 @@ namespace MonoDevelop.Components.PropertyGrid.PropertyEditors entry.HasFrame = false; entry.Changed += TextChanged; entry.FocusOutEvent += FirePendingChangeEvent; + if (!entry.IsEditable) + entry.ModifyText (StateType.Normal, entry.Style.Text (Gtk.StateType.Insensitive)); } - if (entry != null && ShouldShowDialogButton ()) { + if (entry != null && ShouldShowDialogButton () && entry.IsEditable) { var button = new Button ("..."); PackStart (button, false, false, 0); button.Clicked += ButtonClicked; |