aboutsummaryrefslogtreecommitdiffstats
path: root/src/nsterm.h
diff options
context:
space:
mode:
authorStefan Monnier2008-07-17 03:33:59 +0000
committerStefan Monnier2008-07-17 03:33:59 +0000
commitfacfbbbdad272decb23553d827fbc2c0fabaf078 (patch)
tree14d37d409d30bdec0cbfc0ed79593021e1e88ab2 /src/nsterm.h
parentd377ef4a3f6c77c451b647305436d1e8bf914b07 (diff)
downloademacs-facfbbbdad272decb23553d827fbc2c0fabaf078.tar.gz
emacs-facfbbbdad272decb23553d827fbc2c0fabaf078.zip
* Makefile.in: Undef LIB_STANDARD before defining it to silence warning
in case it was defined already. USE @GNUSTEP_MAKEFILES@ rather than envvars. * nsterm.m (ns_term_init): Pass Qt and Qnil rather than YES/NO to ns_default. (applicationShouldTerminate, setValuesFromPanel): Use EQ to compare Lisp_Objects. * nsterm.h (Fx_display_grayscale_p, Fx_display_planes) (ns_defined_color, ns_color_to_lisp): Declare. * nsselect.m (ns_handle_selection_request, ns_handle_selection_clear) (Fns_own_selection_internal): Make the big ugly hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE. * nsmenu.m (ns_update_menubar): Use EQ to compare Lisp_Objects. (update_frame_tool_bar): Remove apparently obsolete tests for non-integerness of f->tool_bar_lines. (windowShouldClose, addButton, clicked, runDialogAt): Make the big ugly hack more explicit, so it's accepted even with USE_LISP_UNION_TYPE. * nsfont.m (nsfont_driver): Use just 0 rather than an invalid cast. (nsfont_open): Don't confuse NULL for Qnil. * nsfns.m (ns_implicitly_set_icon_type): Use EQ to compare Lisp_Objects. * menu.h (find_and_call_menu_selection): * menu.c (find_and_call_menu_selection): Use just int for vector size. (find_and_return_menu_selection): Always return something. * frame.h: Include dispextern.h for Display_Info. (display_x_get_resource): Declare. * configure.in: Extract and substitute GNUSTEP_MAKEFILES.
Diffstat (limited to 'src/nsterm.h')
-rw-r--r--src/nsterm.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/nsterm.h b/src/nsterm.h
index c934ed8e792..260263549b6 100644
--- a/src/nsterm.h
+++ b/src/nsterm.h
@@ -717,6 +717,9 @@ extern void ns_term_shutdown (int sig);
717#define NS_DUMPGLYPH_MOUSEFACE 3 717#define NS_DUMPGLYPH_MOUSEFACE 3
718 718
719 719
720EXFUN (Fx_display_grayscale_p, 1);
721EXFUN (Fx_display_planes, 1);
722
720/* In nsfont, called from fontset.c */ 723/* In nsfont, called from fontset.c */
721extern void nsfont_make_fontset_for_font (Lisp_Object name, 724extern void nsfont_make_fontset_for_font (Lisp_Object name,
722 Lisp_Object font_object); 725 Lisp_Object font_object);
@@ -747,11 +750,13 @@ extern Lisp_Object ns_cursor_type_to_lisp (int arg);
747extern Lisp_Object Qnone; 750extern Lisp_Object Qnone;
748 751
749/* XColor defined in dispextern.h (we use color_def->pixel = NSColor id), but 752/* XColor defined in dispextern.h (we use color_def->pixel = NSColor id), but
750 this causes an #include snafu, so we can't declare it. 753 this causes an #include snafu, so we can't declare it. */
751 extern int ns_defined_color (struct frame *f, char *name, XColor *color_def, 754extern int
752 int alloc); */ 755ns_defined_color (struct frame *f, char *name, XColor *color_def, int alloc,
756 char makeIndex);
753 757
754#ifdef __OBJC__ 758#ifdef __OBJC__
759extern Lisp_Object ns_color_to_lisp (NSColor *col);
755extern int ns_lisp_to_color (Lisp_Object color, NSColor **col); 760extern int ns_lisp_to_color (Lisp_Object color, NSColor **col);
756extern NSColor *ns_lookup_indexed_color (unsigned long idx, struct frame *f); 761extern NSColor *ns_lookup_indexed_color (unsigned long idx, struct frame *f);
757extern unsigned long ns_index_color (NSColor *color, struct frame *f); 762extern unsigned long ns_index_color (NSColor *color, struct frame *f);