diff options
author | marha <marha@users.sourceforge.net> | 2011-07-26 08:58:05 +0200 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2011-07-26 08:58:05 +0200 |
commit | ece07bdeaa82ea59e74bcfc588bcabe5e47567c1 (patch) | |
tree | 661e19ae13980e19f6fe827be5322ca9e0f8e4d8 /xorg-server/hw/xquartz/X11Controller.m | |
parent | 91e91b72f07f4e61db17ee86c6933a7217f0e25c (diff) | |
download | vcxsrv-ece07bdeaa82ea59e74bcfc588bcabe5e47567c1.tar.gz vcxsrv-ece07bdeaa82ea59e74bcfc588bcabe5e47567c1.tar.bz2 vcxsrv-ece07bdeaa82ea59e74bcfc588bcabe5e47567c1.zip |
libX11 libXext mesa pixman xserver xkeyboard-config git update 26 July 2011
Diffstat (limited to 'xorg-server/hw/xquartz/X11Controller.m')
-rw-r--r-- | xorg-server/hw/xquartz/X11Controller.m | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/xorg-server/hw/xquartz/X11Controller.m b/xorg-server/hw/xquartz/X11Controller.m index 2edfb185e..01526b7d0 100644 --- a/xorg-server/hw/xquartz/X11Controller.m +++ b/xorg-server/hw/xquartz/X11Controller.m @@ -612,6 +612,7 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row XQuartzRootlessDefault = ![enable_fullscreen intValue]; [enable_fullscreen_menu setEnabled:!XQuartzRootlessDefault]; + [enable_fullscreen_menu_text setTextColor:XQuartzRootlessDefault ? [NSColor disabledControlTextColor] : [NSColor controlTextColor]]; DarwinSendDDXEvent(kXquartzSetRootless, 1, XQuartzRootlessDefault); @@ -686,6 +687,9 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row [NSApp prefs_set_boolean:@PREFS_SYNC_CLIPBOARD_TO_PB value:[sync_clipboard_to_pasteboard intValue]]; } else if(sender == sync_primary_immediately) { [NSApp prefs_set_boolean:@PREFS_SYNC_PRIMARY_ON_SELECT value:[sync_primary_immediately intValue]]; + } else if(sender == scroll_in_device_direction) { + XQuartzScrollInDeviceDirection = [scroll_in_device_direction intValue]; + [NSApp prefs_set_boolean:@PREFS_SCROLL_IN_DEV_DIRECTION value:XQuartzScrollInDeviceDirection]; } [NSApp prefs_synchronize]; @@ -696,6 +700,15 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row - (IBAction) prefs_show:sender { BOOL pbproxy_active = [NSApp prefs_get_boolean:@PREFS_SYNC_PB default:YES]; + + // Remove preferences from the GUI which are not supported + // TODO: Change 1117 to NSAppKitVersionNumber10_7 when it is defined + if(scroll_in_device_direction && NSAppKitVersionNumber < 1117) { + [scroll_in_device_direction removeFromSuperview]; + scroll_in_device_direction = nil; + } else { + [scroll_in_device_direction setIntValue:XQuartzScrollInDeviceDirection]; + } [fake_buttons setIntValue:darwinFakeButtons]; [enable_keyequivs setIntValue:XQuartzEnableKeyEquivalents]; @@ -726,9 +739,10 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn row:(NSInteger)row [sync_text2 setTextColor:pbproxy_active ? [NSColor controlTextColor] : [NSColor disabledControlTextColor]]; [enable_fullscreen setIntValue:!XQuartzRootlessDefault]; - [enable_fullscreen_menu setEnabled:!XQuartzRootlessDefault]; [enable_fullscreen_menu setIntValue:XQuartzFullscreenMenu]; - + [enable_fullscreen_menu setEnabled:!XQuartzRootlessDefault]; + [enable_fullscreen_menu_text setTextColor:XQuartzRootlessDefault ? [NSColor disabledControlTextColor] : [NSColor controlTextColor]]; + [prefs_panel makeKeyAndOrderFront:sender]; } |