diff options
Diffstat (limited to 'git-gui/lib')
| -rw-r--r-- | git-gui/lib/sshkey.tcl | 5 | ||||
| -rw-r--r-- | git-gui/lib/themed.tcl | 15 | 
2 files changed, 14 insertions, 6 deletions
diff --git a/git-gui/lib/sshkey.tcl b/git-gui/lib/sshkey.tcl index aa6457bbb5..589ff8f78a 100644 --- a/git-gui/lib/sshkey.tcl +++ b/git-gui/lib/sshkey.tcl @@ -2,7 +2,10 @@  # Copyright (C) 2006, 2007 Shawn Pearce  proc find_ssh_key {} { -	foreach name {~/.ssh/id_dsa.pub ~/.ssh/id_rsa.pub ~/.ssh/identity.pub} { +	foreach name { +		~/.ssh/id_dsa.pub ~/.ssh/id_ecdsa.pub ~/.ssh/id_ed25519.pub +		~/.ssh/id_rsa.pub ~/.ssh/identity.pub +	} {  		if {[file exists $name]} {  			set fh    [open $name r]  			set cont  [read $fh] diff --git a/git-gui/lib/themed.tcl b/git-gui/lib/themed.tcl index 351a712c8c..88b3119a75 100644 --- a/git-gui/lib/themed.tcl +++ b/git-gui/lib/themed.tcl @@ -1,6 +1,14 @@  # Functions for supporting the use of themed Tk widgets in git-gui.  # Copyright (C) 2009 Pat Thoyts <patthoyts@users.sourceforge.net> +proc ttk_get_current_theme {} { +	# Handle either current Tk or older versions of 8.5 +	if {[catch {set theme [ttk::style theme use]}]} { +		set theme  $::ttk::currentTheme +	} +	return $theme +} +  proc InitTheme {} {  	# Create a color label style (bg can be overridden by widget option)  	ttk::style layout Color.TLabel { @@ -28,10 +36,7 @@ proc InitTheme {} {  		}  	} -	# Handle either current Tk or older versions of 8.5 -	if {[catch {set theme [ttk::style theme use]}]} { -		set theme  $::ttk::currentTheme -	} +	set theme [ttk_get_current_theme]  	if {[lsearch -exact {default alt classic clam} $theme] != -1} {  		# Simple override of standard ttk::entry to change the field @@ -248,7 +253,7 @@ proc tspinbox {w args} {  proc ttext {w args} {  	global use_ttk  	if {$use_ttk} { -		switch -- [ttk::style theme use] { +		switch -- [ttk_get_current_theme] {  			"vista" - "xpnative" {  				lappend args -highlightthickness 0 -borderwidth 0  			}  | 
