Fossil SCM

Only change the mouse cursor over node boxes in the timeline.

joel 2013-08-22 20:28 trunk
Commit 52bf9059350b59778c911f2b0afd5f858b328beb
1 file changed +6 -4
+6 -4
--- src/timeline.c
+++ src/timeline.c
@@ -667,11 +667,10 @@
667667
@ n.style.left = x0+"px";
668668
@ n.style.top = y0+"px";
669669
@ n.style.width = w+"px";
670670
@ n.style.height = h+"px";
671671
@ n.style.backgroundColor = color;
672
- @ n.style.cursor = "pointer";
673672
@ canvasDiv.appendChild(n);
674673
@ return n;
675674
@ }
676675
@ function absoluteY(id){
677676
@ var obj = gebi(id);
@@ -717,15 +716,18 @@
717716
@ }
718717
@ }
719718
@ function drawThinLine(x0,y0,x1,y1){
720719
@ drawBox(lineColor,x0,y0,x1,y1);
721720
@ }
721
+ @ function drawNodeBox(color,x0,y0,x1,y1){
722
+ @ drawBox(color,x0,y0,x1,y1).style.cursor = "pointer";
723
+ @ }
722724
@ function drawNode(p, left, btm){
723
- @ drawBox(boxColor,p.x-5,p.y-5,p.x+6,p.y+6);
724
- @ drawBox(p.bg||bgColor,p.x-4,p.y-4,p.x+5,p.y+5);
725
+ @ drawNodeBox(boxColor,p.x-5,p.y-5,p.x+6,p.y+6);
726
+ @ drawNodeBox(p.bg||bgColor,p.x-4,p.y-4,p.x+5,p.y+5);
725727
@ if( p.u>0 ) drawUpArrow(p.x, rowinfo[p.u-1].y+6, p.y-5);
726
- @ if( p.f&1 ) drawBox(boxColor,p.x-1,p.y-1,p.x+2,p.y+2);
728
+ @ if( p.f&1 ) drawNodeBox(boxColor,p.x-1,p.y-1,p.x+2,p.y+2);
727729
if( !omitDescenders ){
728730
@ if( p.u==0 ) drawUpArrow(p.x, 0, p.y-5);
729731
@ if( p.d ) drawUpArrow(p.x, p.y+6, btm);
730732
}
731733
@ if( p.mo>0 ){
732734
--- src/timeline.c
+++ src/timeline.c
@@ -667,11 +667,10 @@
667 @ n.style.left = x0+"px";
668 @ n.style.top = y0+"px";
669 @ n.style.width = w+"px";
670 @ n.style.height = h+"px";
671 @ n.style.backgroundColor = color;
672 @ n.style.cursor = "pointer";
673 @ canvasDiv.appendChild(n);
674 @ return n;
675 @ }
676 @ function absoluteY(id){
677 @ var obj = gebi(id);
@@ -717,15 +716,18 @@
717 @ }
718 @ }
719 @ function drawThinLine(x0,y0,x1,y1){
720 @ drawBox(lineColor,x0,y0,x1,y1);
721 @ }
 
 
 
722 @ function drawNode(p, left, btm){
723 @ drawBox(boxColor,p.x-5,p.y-5,p.x+6,p.y+6);
724 @ drawBox(p.bg||bgColor,p.x-4,p.y-4,p.x+5,p.y+5);
725 @ if( p.u>0 ) drawUpArrow(p.x, rowinfo[p.u-1].y+6, p.y-5);
726 @ if( p.f&1 ) drawBox(boxColor,p.x-1,p.y-1,p.x+2,p.y+2);
727 if( !omitDescenders ){
728 @ if( p.u==0 ) drawUpArrow(p.x, 0, p.y-5);
729 @ if( p.d ) drawUpArrow(p.x, p.y+6, btm);
730 }
731 @ if( p.mo>0 ){
732
--- src/timeline.c
+++ src/timeline.c
@@ -667,11 +667,10 @@
667 @ n.style.left = x0+"px";
668 @ n.style.top = y0+"px";
669 @ n.style.width = w+"px";
670 @ n.style.height = h+"px";
671 @ n.style.backgroundColor = color;
 
672 @ canvasDiv.appendChild(n);
673 @ return n;
674 @ }
675 @ function absoluteY(id){
676 @ var obj = gebi(id);
@@ -717,15 +716,18 @@
716 @ }
717 @ }
718 @ function drawThinLine(x0,y0,x1,y1){
719 @ drawBox(lineColor,x0,y0,x1,y1);
720 @ }
721 @ function drawNodeBox(color,x0,y0,x1,y1){
722 @ drawBox(color,x0,y0,x1,y1).style.cursor = "pointer";
723 @ }
724 @ function drawNode(p, left, btm){
725 @ drawNodeBox(boxColor,p.x-5,p.y-5,p.x+6,p.y+6);
726 @ drawNodeBox(p.bg||bgColor,p.x-4,p.y-4,p.x+5,p.y+5);
727 @ if( p.u>0 ) drawUpArrow(p.x, rowinfo[p.u-1].y+6, p.y-5);
728 @ if( p.f&1 ) drawNodeBox(boxColor,p.x-1,p.y-1,p.x+2,p.y+2);
729 if( !omitDescenders ){
730 @ if( p.u==0 ) drawUpArrow(p.x, 0, p.y-5);
731 @ if( p.d ) drawUpArrow(p.x, p.y+6, btm);
732 }
733 @ if( p.mo>0 ){
734

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button