gitk: Fix enabling/disabling of menu items on Mac OS X
commit3cd204e518ce832402c291be73292baa149d0240
authorPaul Mackerras <paulus@samba.org>
Thu, 23 Nov 2006 10:06:16 +0000 (23 21:06 +1100)
committerPaul Mackerras <paulus@samba.org>
Thu, 23 Nov 2006 10:06:16 +0000 (23 21:06 +1100)
treef07d7a991830b0967aef2d3b33bbc8fdfd51d31d
parent67c22874cf82edae9b5c5f0a47c432d08d7ad426
gitk: Fix enabling/disabling of menu items on Mac OS X

It seems that under Mac OS X, the menus get some extra entries (or
possibly fewer entries), leading to references to entries by an
absolute number being off.  This leads to an error when invoking
gitk --all under Mac OS X, because the "Edit view" and "Delete view"
entries aren't were gitk expects them, and so enabling them gives an
error.

This changes the code so it refers to menu entries by their content,
which should solve the problem.

Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk