* [PATCH] gitk: Fix errors in the theme patch
@ 2009-05-12 14:45 Pat Thoyts
2009-05-17 23:32 ` Paul Mackerras
0 siblings, 1 reply; 2+ messages in thread
From: Pat Thoyts @ 2009-05-12 14:45 UTC (permalink / raw)
To: Paul Mackerras; +Cc: git, Johannes Schindelin
This patch fixes a typo in the commit selection combobox that
prevented it from working and sets the width of the widget.
Also fixed show_error to handle errors arising before the gui is
fully configured (ie: invalid command line parameters)
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
---
gitk | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/gitk b/gitk
index 4526193..082fa77 100755
--- a/gitk
+++ b/gitk
@@ -1798,6 +1798,7 @@ proc make_transient {window origin} {
proc show_error {w top msg} {
global NS
+ if {![info exists NS]} {set NS ""}
if {[wm state $top] eq "withdrawn"} { wm deiconify $top }
message $w.m -text $msg -justify center -aspect 400
pack $w.m -side top -fill x -padx 20 -pady 20
@@ -1920,7 +1921,12 @@ proc mca {str} {
proc makedroplist {w varname args} {
global use_ttk
if {$use_ttk} {
- set gm [ttk::combobox $w -width 10 -state readonly\
+ set width 0
+ foreach label $args {
+ set cx [string length $label]
+ if {$cx > $width} {set width $cx}
+ }
+ set gm [ttk::combobox $w -width $width -state readonly\
-textvariable $varname -values $args]
} else {
set gm [eval [linsert $args 0 tk_optionMenu $w $varname]]
@@ -2141,7 +2147,7 @@ proc makewindow {} {
pack .tf.lbar.flabel .tf.lbar.fnext .tf.lbar.fprev .tf.lbar.flab2 \
-side left -fill y
set gdttype [mc "containing:"]
- set gm [makedroplist .tf.lbar.gdttype gdtype \
+ set gm [makedroplist .tf.lbar.gdttype gdttype \
[mc "containing:"] \
[mc "touching paths:"] \
[mc "adding/removing string:"]]
--
1.6.3.msysgit.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] gitk: Fix errors in the theme patch
2009-05-12 14:45 [PATCH] gitk: Fix errors in the theme patch Pat Thoyts
@ 2009-05-17 23:32 ` Paul Mackerras
0 siblings, 0 replies; 2+ messages in thread
From: Paul Mackerras @ 2009-05-17 23:32 UTC (permalink / raw)
To: Pat Thoyts; +Cc: git, Johannes Schindelin
Pat Thoyts writes:
> This patch fixes a typo in the commit selection combobox that
> prevented it from working and sets the width of the widget.
> Also fixed show_error to handle errors arising before the gui is
> fully configured (ie: invalid command line parameters)
Applied to the dev branch, thanks. I'll pull it into the master
branch soon - there have been changes to [vieweditor] on the master
branch that conflict, including new widgets added which will need to
have the ${NS}:: treatment.
Paul.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-05-17 23:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-12 14:45 [PATCH] gitk: Fix errors in the theme patch Pat Thoyts
2009-05-17 23:32 ` Paul Mackerras
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).