On 19.09.2009 08:10, Yuki KODAMA wrote:
> # HG changeset patch
> # User Yuki KODAMA <endflow....@gmail.com>
> # Date 1253340552 -32400
> # Node ID 2e75c17874ab1e6f5d5b65caefaf4be5152cecb3
> # Parent  f52684e023c2a6a8c0a2a4e8ef9e750c8f464764
> status: desensitize all tabs
> 
> Not only text diff and hunk selection tabs.
> 
> diff --git a/tortoisehg/hgtk/status.py b/tortoisehg/hgtk/status.py
> --- a/tortoisehg/hgtk/status.py
> +++ b/tortoisehg/hgtk/status.py
> @@ -900,11 +900,10 @@
>              return
>          row = paths[0]
> 
> -        # desensitize the text diff and hunk selection tabs
> -        # if a non-MAR file is selected
> +        # desensitize the tabs if a non-MAR file is selected
>          status = model[row][FM_STATUS]
>          enable = (status in 'MAR')
> -        for pn in [0, 1]:
> +        for pn in range(self.diff_notebook.get_n_pages()):
>              child = self.diff_notebook.get_nth_page(pn)
>              if child:
>                  child.set_sensitive(enable)
> 

Can you explain a bit more why you want this change?

I deliberately didn't do this because, for example the
"Preview Selection" tab is independent of a file selection
anyway (I mean the blue selection).

It shows all changes, not matter what file is selected.

Text diff and hunk selection show the (blue) selected file.
That's why I turned them off if a file that has no diff
is blue-selected.


------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Tortoisehg-develop mailing list
Tortoisehg-develop@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to