From: Mo DeJong <supermo@bayarea.net>
To: sourcenav <sourcenav@sources.redhat.com>
Subject: [Patch] Fix for parser tab in prefs dialog
Date: Tue, 26 Feb 2002 12:51:00 -0000 [thread overview]
Message-ID: <20020226122933.0c5398fe.supermo@bayarea.net> (raw)
The ChangeLog entry says it all.
cheers
Mo
2002-02-26 Mo DeJong <supermo@bayarea.net>
* gui/preferences.tcl (AddParser): Use a grid layout
for the "Language Extensions" entries in the Parser tab.
The previous implementation would grow the left entry
at the expense of the right entry. One could make the
right entry vanish by typing a lot of text into the
left entry.
Index: gui/preferences.tcl
===================================================================
RCS file: /cvs/sourcenav/src/snavigator/gui/preferences.tcl,v
retrieving revision 1.2
diff -u -r1.2 preferences.tcl
--- preferences.tcl 2002/02/22 03:31:49 1.2
+++ preferences.tcl 2002/02/26 20:26:53
@@ -910,17 +910,15 @@
${ext} config -background $sn_options(def,layout-bg)
set win [${Parser}.ext subwidget frame]
pack ${ext} -fill x -side top -anchor c
- foreach type [lsort -dictionary ${Avail_Parsers}] {
- set fr ${win}.${type}
- set ext ${fr}.edit
- set externaled ${fr}.external
- #file extensitions for there types
- pack [frame ${fr}] -side top -fill x
+ set row 0
+ foreach type [lsort -dictionary ${Avail_Parsers}] {
+ set ext ${win}.edit${row}
+ set externaled ${win}.external${row}
Entry& ${ext} -width -1 -labelwidth 10 -label ${type}\
-textvariable opt_Parser_Info(${type},SUF)
- pack ${ext} -side left -fill x -expand y
+ grid ${ext} -row $row -column 0 -sticky ew
#external editors
LabelEntryButton& ${externaled} -text [get_indep String\
@@ -929,8 +927,11 @@
-buttonballoon [get_indep String ChooseINFO]\
-extensions $sn_options(executable_ext)\
-defaultextension $sn_options(executable_defaultext)
- pack ${externaled} -side left
+ grid ${externaled} -row $row -column 1
+
+ incr row
}
+ grid columnconfigure ${win} 0 -weight 1
#Macro files
set macfr [tixLabelFrame ${Parser}.macros -label [get_indep String\
reply other threads:[~2002-02-26 20:30 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20020226122933.0c5398fe.supermo@bayarea.net \
--to=supermo@bayarea.net \
--cc=sourcenav@sources.redhat.com \
/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 read-only IMAP folder(s) and NNTP newsgroup(s).