Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Commit 853f0aa

Browse files
authored
Merge pull request #8851 from mono/master-vsts810342
Fixes VSTS Bug 810342: Accessibility: Version Control - Log: Voice
2 parents 246aedb + 48f8a1d commit 853f0aa

File tree

6 files changed

+793
-124
lines changed

6 files changed

+793
-124
lines changed

main/src/addins/VersionControl/MonoDevelop.VersionControl/Gui/MonoDevelop.VersionControl.Views.LogWidget.cs

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#pragma warning disable 436
22
// This file has been generated by the GUI designer. Do not modify.
3+
using Gtk;
4+
35
namespace MonoDevelop.VersionControl.Views
46
{
57
public partial class LogWidget
@@ -25,7 +27,12 @@ public partial class LogWidget
2527
private global::Gtk.ScrolledWindow scrolledwindow1;
2628
private global::Gtk.TextView textviewDetails;
2729
private global::Gtk.ScrolledWindow scrolledwindowFiles;
28-
30+
private global::Gtk.ScrolledWindow scrolledwindowFileContents = new ScrolledWindow ();
31+
Label labelFilePathName = new Gtk.Label ();
32+
33+
private HPaned fileHPaned;
34+
private VBox vboxFileContents;
35+
2936
protected virtual void Build ()
3037
{
3138
MonoDevelop.Components.Gui.Initialize (this);
@@ -178,7 +185,17 @@ protected virtual void Build ()
178185
this.scrolledwindowFiles = new global::Gtk.ScrolledWindow ();
179186
this.scrolledwindowFiles.CanFocus = true;
180187
this.scrolledwindowFiles.Name = "scrolledwindowFiles";
181-
this.vpaned1.Add (this.scrolledwindowFiles);
188+
this.fileHPaned = new HPaned ();
189+
this.fileHPaned.Position = 333;
190+
191+
fileHPaned.Add (this.scrolledwindowFiles);
192+
vboxFileContents = new VBox ();
193+
labelFilePathName.Xalign = 0f;
194+
vboxFileContents.PackStart (labelFilePathName, false, true, 6);
195+
vboxFileContents.PackStart (scrolledwindowFileContents, true, true, 0);
196+
fileHPaned.Add (vboxFileContents);
197+
198+
this.vpaned1.Add (fileHPaned);
182199
this.vbox1.Add (this.vpaned1);
183200
global::Gtk.Box.BoxChild w23 = ((global::Gtk.Box.BoxChild)(this.vbox1 [this.vpaned1]));
184201
w23.Position = 0;

main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl.Views/CellRendererDiff.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ static string ProcessLine (string line)
112112

113113
protected override void Render (Drawable window, Widget widget, Gdk.Rectangle background_area, Gdk.Rectangle cell_area, Gdk.Rectangle expose_area, CellRendererState flags)
114114
{
115-
if (isDisposed)
115+
if (isDisposed || layout == null)
116116
return;
117117
if (diffMode) {
118118

@@ -129,7 +129,6 @@ protected override void Render (Drawable window, Widget widget, Gdk.Rectangle ba
129129
}
130130
var treeview = widget as FileTreeView;
131131
var p = treeview != null? treeview.CursorLocation : null;
132-
133132
cell_area.Width -= RightPadding;
134133

135134
window.DrawRectangle (widget.Style.BaseGC (Gtk.StateType.Normal), true, cell_area.X, cell_area.Y, cell_area.Width - 1, cell_area.Height);

0 commit comments

Comments
 (0)