summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6bdf5e5)
raw | patch | inline | side by side (parent: 6bdf5e5)
author | Shawn O. Pearce <spearce@spearce.org> | |
Mon, 8 Oct 2007 05:39:08 +0000 (22:39 -0700) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Wed, 10 Oct 2007 05:12:18 +0000 (01:12 -0400) |
A Mac OS X UI convention is to have Cmd-, be the accelerator key
for the preferences window, which by convention is located in the
apple menu under a separator below the about command. We also now
call this "Preferences..." as that is the conventional term used
in English.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
for the preferences window, which by convention is located in the
apple menu under a separator below the about command. We also now
call this "Preferences..." as that is the conventional term used
in English.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh | patch | blob | history | |
lib/option.tcl | patch | blob | history |
diff --git a/git-gui.sh b/git-gui.sh
index c8307a6eef86a67b63567f1a12f1a7374831e95c..be506b908c0aba7d54d3230b36599ac1db4e7352 100755 (executable)
--- a/git-gui.sh
+++ b/git-gui.sh
.mbar.apple add command -label [mc "About %s" [appname]] \
-command do_about
- .mbar.apple add command -label [mc "Options..."] \
- -command do_options
+ .mbar.apple add separator
+ .mbar.apple add command \
+ -label [mc "Preferences..."] \
+ -command do_options \
+ -accelerator $M1T-,
+ bind . <$M1B-,> do_options
} else {
# -- Edit Menu
#
diff --git a/lib/option.tcl b/lib/option.tcl
index de6bd90edc150f878dd2e78a6279bc0679de71f7..f812e5e89a1f21e2ee96a90e83958a472539bdd5 100644 (file)
--- a/lib/option.tcl
+++ b/lib/option.tcl
toplevel $w
wm geometry $w "+[winfo rootx .]+[winfo rooty .]"
- label $w.header -text [mc "Options"] \
- -font font_uibold
- pack $w.header -side top -fill x
-
frame $w.buttons
button $w.buttons.restore -text [mc "Restore Defaults"] \
-default normal \
bind $w <Visibility> "grab $w; focus $w.buttons.save"
bind $w <Key-Escape> "destroy $w"
bind $w <Key-Return> [list do_save_config $w]
- wm title $w [append "[appname] ([reponame]): " [mc "Options"]]
+
+ if {[is_MacOSX]} {
+ set t [mc "Preferences"]
+ } else {
+ set t [mc "Options"]
+ }
+ wm title $w "[appname] ([reponame]): $t"
tkwait window $w
}