summaryrefslogtreecommitdiffstats
path: root/x11vnc/tkx11vnc
diff options
context:
space:
mode:
Diffstat (limited to 'x11vnc/tkx11vnc')
-rwxr-xr-xx11vnc/tkx11vnc37
1 files changed, 31 insertions, 6 deletions
diff --git a/x11vnc/tkx11vnc b/x11vnc/tkx11vnc
index 40559f2..d81bb37 100755
--- a/x11vnc/tkx11vnc
+++ b/x11vnc/tkx11vnc
@@ -3607,11 +3607,14 @@ proc toggle_simple_gui {} {
proc little_qs {m} {
global bfont ffont beginner_mode
global helpremote helptext helplabel
- global tk_version
+ global tk_version osname
if {$tk_version < 8.0} {
return
}
+ if {$osname == "Darwin"} {
+ return
+ }
set n [$m index end]
@@ -3856,6 +3859,7 @@ proc make_menu_items {} {
}
# Now make the little "(?)" help buttons
+ global osname
foreach case [array names menu_m] {
if {$case == "Help"} {
continue;
@@ -5224,7 +5228,12 @@ proc make_widgets {top} {
}
incr ul
}
- menubutton $menub -text "$case" -underline $ul \
+ global osname
+ set tstr "$case"
+ if {$osname == "Darwin"} {
+ #set tstr " $case "
+ }
+ menubutton $menub -text "$tstr" -underline $ul \
-anchor w -menu $menu -background $fbg \
-font $bfont
pack $menub -side top -fill x
@@ -5296,30 +5305,42 @@ proc make_widgets {top} {
bind $ef_entry <KeyPress-Return> {set entry_set 1}
bind $ef_entry <KeyPress-Escape> {set entry_set 0}
+ set ok_s "OK"
+ set cancel_s "Cancel"
+ set help_s "Help"
+ set browse_s "Browse..."
+ global osname
+ if {$osname == "Darwin"} {
+ set ok_s " OK "
+ set cancel_s " Cancel "
+ set help_s " Help "
+ set browse_s " Browse... "
+ }
+
# Entry OK button
set bpx "1m"
set bpy "1"
set hlt "0"
set ef_ok "$ef.ok"
- button $ef_ok -text OK -pady $bpy -padx $bpx -command {set entry_set 1} \
+ button $ef_ok -text $ok_s -pady $bpy -padx $bpx -command {set entry_set 1} \
-highlightthickness $hlt \
-font $bfont
# Entry Skip button
set ef_skip "$ef.skip"
- button $ef_skip -text Cancel -pady $bpy -padx $bpx -command {set entry_set 0} \
+ button $ef_skip -text $cancel_s -pady $bpy -padx $bpx -command {set entry_set 0} \
-highlightthickness $hlt \
-font $bfont
# Entry Help button
set ef_help "$ef.help"
- button $ef_help -text Help -pady $bpy -padx $bpx -command \
+ button $ef_help -text $help_s -pady $bpy -padx $bpx -command \
{menu_help $entry_dialog_item} -font $bfont \
-highlightthickness $hlt
# Entry Browse button
set ef_browse "$ef.browse"
- button $ef_browse -text "Browse..." -pady $bpy -padx $bpx -font $bfont \
+ button $ef_browse -text $browse_s -pady $bpy -padx $bpx -font $bfont \
-highlightthickness $hlt \
-command {entry_insert [tk_getOpenFile]}
@@ -6453,6 +6474,10 @@ if {[regexp -nocase {IRIX} $osname]} {
# IRIX "fixed" font is huge and doublespaced...
set ffont $snfont
}
+if {[regexp -nocase {Darwin} $osname]} {
+ set ffont {Monaco 10}
+ set bfont {system}
+}
#puts [exec env]
#puts "x11vnc_xdisplay: $x11vnc_xdisplay"
OpenPOWER on IntegriCloud