XQuartz: "Disable" the text when syncing is disabled.

(cherry picked from commit 7713d7ab66e74b212a6c0d634a3ad82373e178db)
This commit is contained in:
Jeremy Huddleston 2008-09-19 13:15:07 -07:00
parent dba290ec23
commit b666ffd781

View File

@ -641,9 +641,9 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn row:(int)row
[sync_clipboard_to_pasteboard setEnabled:pbproxy_active]; [sync_clipboard_to_pasteboard setEnabled:pbproxy_active];
[sync_primary_immediately setEnabled:pbproxy_active]; [sync_primary_immediately setEnabled:pbproxy_active];
// This doesn't seem to work. // setEnabled doesn't do this...
[sync_text1 setEnabled:pbproxy_active]; [sync_text1 setTextColor:pbproxy_active ? [NSColor controlTextColor] : [NSColor disabledControlTextColor]];
[sync_text2 setEnabled:pbproxy_active]; [sync_text2 setTextColor:pbproxy_active ? [NSColor controlTextColor] : [NSColor disabledControlTextColor]];
/* after adding prefs here, also add to [X11Application read_defaults] /* after adding prefs here, also add to [X11Application read_defaults]
and prefs_show */ and prefs_show */
@ -696,9 +696,9 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn row:(int)row
[sync_clipboard_to_pasteboard setEnabled:pbproxy_active]; [sync_clipboard_to_pasteboard setEnabled:pbproxy_active];
[sync_primary_immediately setEnabled:pbproxy_active]; [sync_primary_immediately setEnabled:pbproxy_active];
// This doesn't seem to work. // setEnabled doesn't do this...
[sync_text1 setEnabled:pbproxy_active]; [sync_text1 setTextColor:pbproxy_active ? [NSColor controlTextColor] : [NSColor disabledControlTextColor]];
[sync_text2 setEnabled:pbproxy_active]; [sync_text2 setTextColor:pbproxy_active ? [NSColor controlTextColor] : [NSColor disabledControlTextColor]];
[enable_fullscreen setIntValue:!quartzEnableRootless]; [enable_fullscreen setIntValue:!quartzEnableRootless];
// TODO: Add fullscreen support // TODO: Add fullscreen support