diff options
author | runge <runge> | 2006-11-13 15:33:00 +0000 |
---|---|---|
committer | runge <runge> | 2006-11-13 15:33:00 +0000 |
commit | 4a83f87609b9d53b2983806be58ccd02498a5cd3 (patch) | |
tree | a79c96930a97fb162edd1765adece43425f8db8a /x11vnc/tkx11vnc | |
parent | 5f9693d4a2c511f8f2ea069373807c5f36ac1459 (diff) | |
download | libtdevnc-4a83f87609b9d53b2983806be58ccd02498a5cd3.tar.gz libtdevnc-4a83f87609b9d53b2983806be58ccd02498a5cd3.zip |
x11vnc: Native Mac OS X support.
Diffstat (limited to 'x11vnc/tkx11vnc')
-rwxr-xr-x | x11vnc/tkx11vnc | 37 |
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" |