* nsterm.m (Qcocoa, Qgnustep): New variables.
(syms_of_nsterm): Defsym Qcocoa, Qgnustep. Fprovide appropriate one.
+ (ns_get_color): Make selection color work for GNUStep also.
2013-10-18 Eli Zaretskii <eliz@gnu.org>
/*fprintf (stderr, "ns_get_color: '%s'\n", name); */
block_input ();
-#ifdef NS_IMPL_COCOA
if ([nsname isEqualToString: @"ns_selection_bg_color"])
{
+#ifdef NS_IMPL_COCOA
NSString *defname = [[NSUserDefaults standardUserDefaults]
stringForKey: @"AppleHighlightColor"];
-
if (defname != nil)
nsname = defname;
- else if ((new = [NSColor selectedTextBackgroundColor]) != nil)
+ else
+#endif
+ if ((new = [NSColor selectedTextBackgroundColor]) != nil)
{
*col = [new colorUsingColorSpaceName: NSCalibratedRGBColorSpace];
unblock_input ();
nsname = NS_SELECTION_FG_COLOR_DEFAULT;
name = [nsname UTF8String];
}
-#endif // NS_IMPL_COCOA
/* First, check for some sort of numeric specification. */
hex[0] = '\0';