From: Pat Thoyts <patthoyts@users.sourceforge.net>
To: Paul Mackerras <paulus@samba.org>
Cc: git@vger.kernel.org
Cc: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Subject: [PATCH] gitk: restore pane sizes when using ttk widgets
Date: 17 Apr 2009 22:33:29 +0100 [thread overview]
Message-ID: <87vdp39d92.fsf_-_@users.sourceforge.net> (raw)
In-Reply-To: <18920.32172.162401.593355@cargo.ozlabs.ibm.com>
This patch applies the saved pane sizes for the ttk widgets. The
ttk paned window does not have a paneconfigure subcommand but we
can set the sash position once the widget gets mapped.
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
---
gitk | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
diff --git a/gitk b/gitk
index 053b1a0..8c6a239 100755
--- a/gitk
+++ b/gitk
@@ -2326,6 +2326,17 @@ proc makewindow {} {
set ::BM "2"
}
+ if {$use_ttk} {
+ bind .ctop <Map> {
+ bind %W <Map> {}
+ %W sashpos 0 $::geometry(topheight)
+ }
+ bind .pwbottom <Map> {
+ bind %W <Map> {}
+ %W sashpos 0 $::geometry(botwidth)
+ }
+ }
+
bind .pwbottom <Configure> {resizecdetpanes %W %w}
pack .ctop -fill both -expand 1
bindall <1> {selcanvline %W %x %y}
--
1.6.2.2.1669.g7eaf8
next prev parent reply other threads:[~2009-04-17 21:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-17 0:24 [PATCH] gitk: use themed tk widgets Pat Thoyts
2009-04-17 10:10 ` Johannes Schindelin
2009-04-17 18:46 ` Pat Thoyts
2009-04-17 13:01 ` Paul Mackerras
2009-04-17 21:33 ` Pat Thoyts [this message]
2009-04-30 23:47 ` [PATCH] gitk: restore pane sizes when using ttk widgets Paul Mackerras
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87vdp39d92.fsf_-_@users.sourceforge.net \
--to=patthoyts@users.sourceforge.net \
--cc=git@vger.kernel.org \
--cc=paulus@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 NNTP newsgroup(s).