gitk: Adjust the menu line numbers to compensate for the new entry

Commit d835dbb9 ("gitk: Add a "Copy commit summary" command", 2015-08-13) in the upstream gitk repo added a new context menu entry. Therefore, the line numbers of the entries below the new one need to be adjusted when their text or state is changed. Signed-off-by: Beat Bolli <dev+git@drbeat.li> Cc: Paul Mackerras <paulus@samba.org> Signed-off-by: Paul Mackerras <paulus@samba.org>

Beat Bolli committed Sep 8, 2015 at 01:16 UTC b6f92a8563cedc67915a038e441b0440e692f5dc
1 file changed +3 -3
gitk
+3 -3
@@ -8896,13 +8896,13 @@ proc rowmenu {x y id} {
8896 if {$id ne $nullid && $id ne $nullid2} {
8897 set menu $rowctxmenu
8898 if {$mainhead ne {}} {
8899 - $menu entryconfigure 7 -label [mc "Reset %s branch to here" $mainhead] -state normal
8899 + $menu entryconfigure 8 -label [mc "Reset %s branch to here" $mainhead] -state normal
8900 } else {
8901 - $menu entryconfigure 7 -label [mc "Detached head: can't reset" $mainhead] -state disabled
8901 + $menu entryconfigure 8 -label [mc "Detached head: can't reset" $mainhead] -state disabled
8902 }
8903 - $menu entryconfigure 9 -state $mstate
8903 $menu entryconfigure 10 -state $mstate
8904 $menu entryconfigure 11 -state $mstate
8905 + $menu entryconfigure 12 -state $mstate
8906 } else {
8907 set menu $fakerowmenu
8908 }