summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Hunt <hunt@redhat.com>2003-07-29 22:11:09 +0000
committerMartin Hunt <hunt@redhat.com>2003-07-29 22:11:09 +0000
commite719310efbeadcffd43357429e1639f48d4d8b01 (patch)
tree22ca8395633a59adc5c39d58acd5b08cd15fb03e
parentbfcf3353ae4aa66a119e5bee875402878a03cc17 (diff)
downloadgdb-e719310efbeadcffd43357429e1639f48d4d8b01.tar.gz
2003-07-29 Martin Hunt <hunt@redhat.com>
* library/prefs.tcl (pref_set_option_db): On Windows, fix highlighting of buttons. On Unix, fix highlighting of menus.
-rw-r--r--gdb/gdbtk/ChangeLog11
-rw-r--r--gdb/gdbtk/library/prefs.tcl8
2 files changed, 18 insertions, 1 deletions
diff --git a/gdb/gdbtk/ChangeLog b/gdb/gdbtk/ChangeLog
index bbe5bb89a00..96154900bfa 100644
--- a/gdb/gdbtk/ChangeLog
+++ b/gdb/gdbtk/ChangeLog
@@ -1,3 +1,14 @@
+2003-07-29 Martin Hunt <hunt@redhat.com>
+
+ * library/prefs.tcl (pref_set_option_db): On Windows, fix
+ highlighting of buttons. On Unix, fix highlighting of
+ menus.
+
+2003-07-10 Martin Hunt <hunt@redhat.com>
+
+ * library/prefs.tcl (pref_set_option_db): Only set
+ activeBackground for Unix.
+
2003-07-03 Martin Hunt <hunt@redhat.com>
* library/prefs.tcl (pref_set_option_db): Only
diff --git a/gdb/gdbtk/library/prefs.tcl b/gdb/gdbtk/library/prefs.tcl
index 8f6e0123a6c..b767c898a73 100644
--- a/gdb/gdbtk/library/prefs.tcl
+++ b/gdb/gdbtk/library/prefs.tcl
@@ -682,8 +682,14 @@ proc pref_set_option_db {makebg} {
option add *highlightBackground $Colors(bg)
option add *selectBackground $Colors(sbg)
- option add *activeBackground $Colors(sbg)
+
+ if {$::tcl_platform(platform) == "unix"} {
+ option add *activeBackground $Colors(sbg)
+ }
+
option add *selectForeground $Colors(sfg)
+ option add *Menu*activeForeground $Colors(sfg)
+
if {[info exists Colors(prelight)]} {
option add *Button*activeBackground $Colors(prelight)
}