From 5e1dedc1ec8543cc4385b0a028e1f11495bc382f Mon Sep 17 00:00:00 2001 From: Adrian Robert Date: Thu, 29 Jan 2009 10:35:55 +0000 Subject: [PATCH] * nsterm.h (EmacsPrefsController.cursorBlinkSlider): Only define under GNUstep. (ns_query_color): New declaration. --- src/nsterm.h | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/nsterm.h b/src/nsterm.h index b1bff2e916f..7ba1243dc0e 100644 --- a/src/nsterm.h +++ b/src/nsterm.h @@ -335,16 +335,20 @@ along with GNU Emacs. If not, see . */ IBOutlet NSPopUpButton *functionModMenu; #endif IBOutlet NSMatrix *cursorTypeMatrix; - IBOutlet NSSlider *cursorBlinkSlider; IBOutlet NSSlider *expandSpaceSlider; #ifdef NS_IMPL_COCOA IBOutlet NSButton *smoothFontsCheck; IBOutlet NSButton *useQuickdrawCheck; IBOutlet NSButton *useSysHiliteCheck; + IBOutlet NSButton *confirmQuitCheck; Lisp_Object prevUseHighlightColor; #endif float prevExpandSpace; - float prevBlinkRate; +#ifdef NS_IMPL_GNUSTEP + /* TODO: remove as soon as someone can edit the .nib to replace the + cursor-blink widget with checkbox conn to confirmQuitCheck */ + IBOutlet NSSlider *cursorBlinkSlider; +#endif } - (IBAction)cancel: (id)sender; - (IBAction)ok: (id)sender; @@ -744,11 +748,11 @@ extern Lisp_Object ns_cursor_type_to_lisp (int arg); extern Lisp_Object Qnone; extern char ns_no_defaults; -/* XColor defined in dispextern.h (we use color_def->pixel = NSColor id), but - this causes an #include snafu, so we can't declare it. */ extern int ns_defined_color (struct frame *f, char *name, XColor *color_def, int alloc, char makeIndex); +extern void +ns_query_color (void *col, XColor *color_def, int setPixel); #ifdef __OBJC__ extern Lisp_Object ns_color_to_lisp (NSColor *col); -- 2.39.2