summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b6e192d)
raw | patch | inline | side by side (parent: b6e192d)
author | Pat Thoyts <patthoyts@users.sourceforge.net> | |
Tue, 14 Apr 2009 21:09:53 +0000 (22:09 +0100) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Fri, 17 Apr 2009 12:47:49 +0000 (22:47 +1000) |
This records the window state in ~/.gitk. On startup, if the gitk
window was previously maximized (zoomed), then we restore that state.
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
window was previously maximized (zoomed), then we restore that state.
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk | patch | blob | history |
index a65d961a0732adab3c0be0949cc66fa4ef022fce..045e4abba83789a98532bea6f495d5d214667398 100755 (executable)
--- a/gitk
+++ b/gitk
}
}
+ if {[info exists geometry(state)] && $geometry(state) eq "zoomed"} {
+ wm state . $geometry(state)
+ }
+
if {[tk windowingsystem] eq {aqua}} {
set M1B M1
set ::BM "3"
puts $f [list set perfile_attrs $perfile_attrs]
puts $f "set geometry(main) [wm geometry .]"
+ puts $f "set geometry(state) [wm state .]"
puts $f "set geometry(topwidth) [winfo width .tf]"
puts $f "set geometry(topheight) [winfo height .tf]"
puts $f "set geometry(pwsash0) \"[.tf.histframe.pwclist sash coord 0]\""