summaryrefslogtreecommitdiff
path: root/hw/xquartz/X11Controller.m
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@freedesktop.org>2008-09-19 13:15:07 -0700
committerJeremy Huddleston <jeremyhu@freedesktop.org>2008-09-21 17:40:41 -0700
commitb666ffd78155db228174041e9d7460b8a07dde0f (patch)
treef888eb16358326ad3c9ffe44384df6816d7b92d7 /hw/xquartz/X11Controller.m
parentdba290ec231422740f453b69b187f80df3f50e4b (diff)
XQuartz: "Disable" the text when syncing is disabled.
(cherry picked from commit 7713d7ab66e74b212a6c0d634a3ad82373e178db)
Diffstat (limited to 'hw/xquartz/X11Controller.m')
-rw-r--r--hw/xquartz/X11Controller.m12
1 files changed, 6 insertions, 6 deletions
diff --git a/hw/xquartz/X11Controller.m b/hw/xquartz/X11Controller.m
index db7ca2d08..bbc5fd140 100644
--- a/hw/xquartz/X11Controller.m
+++ b/hw/xquartz/X11Controller.m
@@ -641,9 +641,9 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn row:(int)row
[sync_clipboard_to_pasteboard setEnabled:pbproxy_active];
[sync_primary_immediately setEnabled:pbproxy_active];
- // This doesn't seem to work.
- [sync_text1 setEnabled:pbproxy_active];
- [sync_text2 setEnabled:pbproxy_active];
+ // setEnabled doesn't do this...
+ [sync_text1 setTextColor:pbproxy_active ? [NSColor controlTextColor] : [NSColor disabledControlTextColor]];
+ [sync_text2 setTextColor:pbproxy_active ? [NSColor controlTextColor] : [NSColor disabledControlTextColor]];
/* after adding prefs here, also add to [X11Application read_defaults]
and prefs_show */
@@ -696,9 +696,9 @@ objectValueForTableColumn:(NSTableColumn *)tableColumn row:(int)row
[sync_clipboard_to_pasteboard setEnabled:pbproxy_active];
[sync_primary_immediately setEnabled:pbproxy_active];
- // This doesn't seem to work.
- [sync_text1 setEnabled:pbproxy_active];
- [sync_text2 setEnabled:pbproxy_active];
+ // setEnabled doesn't do this...
+ [sync_text1 setTextColor:pbproxy_active ? [NSColor controlTextColor] : [NSColor disabledControlTextColor]];
+ [sync_text2 setTextColor:pbproxy_active ? [NSColor controlTextColor] : [NSColor disabledControlTextColor]];
[enable_fullscreen setIntValue:!quartzEnableRootless];
// TODO: Add fullscreen support