From: Mark Hills <mark@pogo.org.uk>
To: git@vger.kernel.org
Subject: [PATCH 4/5] gitk: Disable option when themed widgets are not available
Date: Mon, 28 Dec 2009 20:04:02 +0000 [thread overview]
Message-ID: <1262030643-12952-4-git-send-email-mark@pogo.org.uk> (raw)
In-Reply-To: <1262030643-12952-3-git-send-email-mark@pogo.org.uk>
Disable the widget instead of using the label to indicate that themed
widgets are not available.
Signed-off-by: Mark Hills <mark@pogo.org.uk>
---
gitk-git/gitk | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/gitk-git/gitk b/gitk-git/gitk
index 5cbc885..5008753 100644
--- a/gitk-git/gitk
+++ b/gitk-git/gitk
@@ -10721,14 +10721,14 @@ proc doprefs {} {
${NS}::label $top.lgen -text [mc "General options"]
grid $top.lgen - -sticky w -pady 10
- ${NS}::checkbutton $top.want_ttk -variable want_ttk \
- -text [mc "Use themed widgets"]
if {$have_ttk} {
- ${NS}::label $top.ttk_note -text [mc "(change requires restart)"]
+ ${NS}::checkbutton $top.want_ttk -variable want_ttk \
+ -text [mc "Use themed widgets (change requires restart)"]
} else {
- ${NS}::label $top.ttk_note -text [mc "(currently unavailable)"]
+ ${NS}::checkbutton $top.want_ttk \
+ -text [mc "Use themed widgets"] -state disabled
}
- grid x $top.want_ttk $top.ttk_note -sticky w
+ grid x $top.want_ttk - -sticky w
${NS}::label $top.cdisp -text [mc "Colors: press to choose"]
grid $top.cdisp - -sticky w -pady 10
--
1.6.6
next prev parent reply other threads:[~2009-12-28 20:31 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-28 20:03 [PATCH 1/5] gitk: Remove forced use of sans-serif font Mark Hills
2009-12-28 20:04 ` [PATCH 2/5] gitk: Set the font for all spinbox widgets Mark Hills
2009-12-28 20:04 ` [PATCH 3/5] gitk: Set the font for all listbox widgets Mark Hills
2009-12-28 20:04 ` Mark Hills [this message]
2009-12-28 20:04 ` [PATCH 5/5] gitk: Use consistent font for all text input fields Mark Hills
-- strict thread matches above, loose matches on Subject: below --
2010-01-13 20:40 [PATCH resend] gitk: font and theme use Mark Hills
2010-01-13 20:40 ` [PATCH 1/5] gitk: Remove forced use of sans-serif font Mark Hills
2010-01-13 20:40 ` [PATCH 2/5] gitk: Set the font for all spinbox widgets Mark Hills
2010-01-13 20:40 ` [PATCH 3/5] gitk: Set the font for all listbox widgets Mark Hills
2010-01-13 20:40 ` [PATCH 4/5] gitk: Disable option when themed widgets are not available Mark Hills
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=1262030643-12952-4-git-send-email-mark@pogo.org.uk \
--to=mark@pogo.org.uk \
--cc=git@vger.kernel.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).