git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH] gitk: fix selection color not persistent
@ 2021-04-02 19:22 gh acct via GitGitGadget
  2021-04-03  9:59 ` Bagas Sanjaya
  2021-04-04  2:13 ` Junio C Hamano
  0 siblings, 2 replies; 3+ messages in thread
From: gh acct via GitGitGadget @ 2021-04-02 19:22 UTC (permalink / raw)
  To: git; +Cc: gh acct, ghacct

From: ghacct <tony@viulogix.com>

Dear git community,
Is it possible please for the gitk selection color setting to be persistent?  Since 2015 this has been working for me.
Thank you for considering!

Signed-off-by: tgomez <tgomez@usa.wtbts.net>
Signed-off-by: ghacct <tony@viulogix.com>
---
    gitk: fix selection color not persistent
    
    Dear git community, Is it possible please for the gitk selection color
    setting to be persistent? Since 2015 this has been working for me. Thank
    you for considering!

Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-926%2Fghacct%2Fpatch-1-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-926/ghacct/patch-1-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/926

 gitk-git/gitk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gitk-git/gitk b/gitk-git/gitk
index 23d9dd1fe0d0..d255654b02fd 100755
--- a/gitk-git/gitk
+++ b/gitk-git/gitk
@@ -2412,6 +2412,7 @@ proc makewindow {} {
     text $ctext -background $bgcolor -foreground $fgcolor \
         -state disabled -undo 0 -font textfont \
         -yscrollcommand scrolltext -wrap none \
+        -selectbackground $selectbgcolor -selectforeground $fgcolor \
         -xscrollcommand ".bleft.bottom.sbhorizontal set"
     if {$have_tk85} {
         $ctext conf -tabstyle wordprocessor

base-commit: a65ce7f831aa5fcc596c6d23fcde543d98b39bd7
-- 
gitgitgadget

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] gitk: fix selection color not persistent
  2021-04-02 19:22 [PATCH] gitk: fix selection color not persistent gh acct via GitGitGadget
@ 2021-04-03  9:59 ` Bagas Sanjaya
  2021-04-04  2:13 ` Junio C Hamano
  1 sibling, 0 replies; 3+ messages in thread
From: Bagas Sanjaya @ 2021-04-03  9:59 UTC (permalink / raw)
  To: gh acct via GitGitGadget; +Cc: gh acct, git, Junio C Hamano

On 03/04/21 02.22, gh acct via GitGitGadget wrote:
> From: ghacct <tony@viulogix.com>
Is it anonymous contribution?

> Dear git community,
> Is it possible please for the gitk selection color setting to be persistent?  Since 2015 this has been working for me.
> Thank you for considering!
The patch/commit message seems like question asking for something,
but you should instead describe why you made this patch, as our
convention here.
  
> Signed-off-by: tgomez <tgomez@usa.wtbts.net>
> Signed-off-by: ghacct <tony@viulogix.com>
I asked to you: Is tgomez co-authored this patch or just helping?

> ---
>      gitk: fix selection color not persistent
>      
>      Dear git community, Is it possible please for the gitk selection color
>      setting to be persistent? Since 2015 this has been working for me. Thank
>      you for considering!
> 
> Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-926%2Fghacct%2Fpatch-1-v1
> Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-926/ghacct/patch-1-v1
> Pull-Request: https://github.com/gitgitgadget/git/pull/926
> 
>   gitk-git/gitk | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/gitk-git/gitk b/gitk-git/gitk
> index 23d9dd1fe0d0..d255654b02fd 100755
> --- a/gitk-git/gitk
> +++ b/gitk-git/gitk
> @@ -2412,6 +2412,7 @@ proc makewindow {} {
>       text $ctext -background $bgcolor -foreground $fgcolor \
>           -state disabled -undo 0 -font textfont \
>           -yscrollcommand scrolltext -wrap none \
> +        -selectbackground $selectbgcolor -selectforeground $fgcolor \
>           -xscrollcommand ".bleft.bottom.sbhorizontal set"
>       if {$have_tk85} {
>           $ctext conf -tabstyle wordprocessor
> 
> base-commit: a65ce7f831aa5fcc596c6d23fcde543d98b39bd7
> 
[CC] Junio, what do you think about this patch?

-- 
An old man doll... just what I always wanted! - Clara

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] gitk: fix selection color not persistent
  2021-04-02 19:22 [PATCH] gitk: fix selection color not persistent gh acct via GitGitGadget
  2021-04-03  9:59 ` Bagas Sanjaya
@ 2021-04-04  2:13 ` Junio C Hamano
  1 sibling, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2021-04-04  2:13 UTC (permalink / raw)
  To: gh acct via GitGitGadget; +Cc: git, gh acct

"gh acct via GitGitGadget" <gitgitgadget@gmail.com> writes:

> From: ghacct <tony@viulogix.com>
>
> Dear git community,
> Is it possible please for the gitk selection color setting to be persistent?  Since 2015 this has been working for me.
> Thank you for considering!
>
> Signed-off-by: tgomez <tgomez@usa.wtbts.net>
> Signed-off-by: ghacct <tony@viulogix.com>

cf. Documentation/SubmittingPatches
[[describe-changes]]
[[summary-section]]
[[meaningful-message]]
[[imperative-mood]]
[[sign-off]]
[[real-name]]

Also 'gitk' patches should be based on Paul's tree, not mine.
cf.  "Subsystems with dedicated maintainers" section in
Documentation/SubmittingPatches

So the diff should look more like 

	diff --git a/gitk b/gitk
	index ...
	--- a/gitk
	+++ b/gitk
	@@ ...

As to the contents of the patch itself, I am not the best person to
comment on.  I no longer use gitk myself unless I am testing gitk,
and I no longer speak Tcl/Tk.

Having said that, I see no existing instance of -selectforeground so
in the absense of somebody who is better versed in Tk, I'd be wary
of this change.  I, however, see that

    text some-widget \
    -background $bgcolor -foreground $fgcolor -selectbackground $selectbgcolor

is a recurring theme for other text widgets like $cflist and
$top.list, so if the change were only to add the missing
"-selectbackground $selectbgcolor" there, I would imagine it would
be a safe improvement (or adding the "-selectforeground $fgcolor" to
other text widgets that currently lack might turn out to be a sensible
change, too, but as I said, I do not speak Tcl/Tk).


>  gitk-git/gitk | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/gitk-git/gitk b/gitk-git/gitk
> index 23d9dd1fe0d0..d255654b02fd 100755
> --- a/gitk-git/gitk
> +++ b/gitk-git/gitk
> @@ -2412,6 +2412,7 @@ proc makewindow {} {
>      text $ctext -background $bgcolor -foreground $fgcolor \
>          -state disabled -undo 0 -font textfont \
>          -yscrollcommand scrolltext -wrap none \
> +        -selectbackground $selectbgcolor -selectforeground $fgcolor \
>          -xscrollcommand ".bleft.bottom.sbhorizontal set"
>      if {$have_tk85} {
>          $ctext conf -tabstyle wordprocessor
>
> base-commit: a65ce7f831aa5fcc596c6d23fcde543d98b39bd7

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-04  2:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-02 19:22 [PATCH] gitk: fix selection color not persistent gh acct via GitGitGadget
2021-04-03  9:59 ` Bagas Sanjaya
2021-04-04  2:13 ` Junio C Hamano

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).