aboutsummaryrefslogtreecommitdiffstats
path: root/src/macfns.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * fileio.c (Fread_file_name): Pass Qt as fifth parameter toJan Djärv2004-11-021-19/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fx_file_dialog if only directories should be read. * lisp.h: Fx_file_dialog takes 5 parameters. * xfns.c (Fx_file_dialog): Both Motif and GTK version: Add parameter only_dir_p. In Motif version, don't put DEFAULT_FILENAME in filter part of the dialog, just text field part. Do not add DEFAULT_FILENAME to list of files if it isn't there. In GTK version, pass only_dir_p parameter to xg_get_file_name. * macfns.c (Fx_file_dialog): Add parameter only_dir_p. Check only_dir_p instead of comparing prompt to "Dired". When using a save dialog, add option kNavDontConfirmReplacement, change title to "Enter name", change text for save button to "Ok". * w32fns.c (Fx_file_dialog): Add parameter only_dir_p. Check only_dir_p instead of comparing prompt to "Dired". * gtkutil.c (xg_get_file_with_chooser) (xg_get_file_with_selection): New functions, only defined ifdef HAVE_GTK_FILE_CHOOSER_DIALOG_NEW and HAVE_GTK_FILE_SELECTION_NEW respectively. (xg_get_file_name): Add parameter only_dir_p. Call xg_get_file_with_chooser or xg_get_file_with_selection depending on HAVE_GTK_FILE* and the value of use_old_gtk_file_dialog. (xg_initialize): New DEFVAR_BOOL use_old_gtk_file_dialog. * gtkutil.h (xg_get_file_name): Add parameter only_dir_p.
* macterm.c (x_raise_frame): Add BLOCK_INPUT around SelectWindowSteven Tamm2004-10-101-5/+3
| | | | | | | | | | | | | | (x_lower_frame): Add BLOCK_INPUT around SendBehind (make_mac_frame): Add BLOCK_INPUT around the making of a terminal frame (mac_initialize): Add BLOCK_INPUT around carbon initialization macgui.h (mktime): Use emacs_mktime macfns.c (Fx_file_dialog): Add BLOCK_INPUT around more code. Make a cancel file-open dialog be like C-g. mac.c (mktime): Use emacs_mktime (Fdo_applescript): Add BLOCK_INPUT around do_applescript (Fmac_paste_function): Add better error handling for carbon cut/paste
* macfns.c (mac_get_window_bounds): Add extern.Steven Tamm2004-10-061-24/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | (x_real_positions): Use mac_get_window_bounds. macmenu.c (update_submenu_strings): Apply 2004-09-07 change for xmenu.c (YAILOM). macterm.c [!MAC_OSX]: Include Windows.h. (front_emacs_window): Rename from mac_front_window. All uses changed. Return the frontmost non-tooltip emacs window. (mac_get_window_bounds): New function. (x_calc_absolute_position): Use the difference of width and height between the inner and outer window. (x_set_offset): Specify window position by the coordinae of the outer window. Adjust the position if the title bar is completely outside the screen. (app_is_suspended, app_sleep_time): Remove unused variables. (do_app_resume, do_app_suspend): Remove their contents because window-activate/deactivate events will do the job. (do_zoom_window): Remove unused variables. Make compliant to the standard way of zooming. Set f->left_pos and f->top_pos. (XTread_socket): Don't use argument `expected'. Don't use FrontWindow to determine the clicked window. Exclude unprocessed mouseUp cases in the early stage. Add parentheses to fix operator precedence. (XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
* (x_real_positions): Save the current window port andSteven Tamm2004-09-021-13/+36
| | | | | | | | set a new one before obtaining the global coordinate. Use FRAME_MAC_WINDOW. (x_set_name, x_set_title): Encode title to UTF8. Use SetWindowTitleWithCFString. (Fx_server_version): Get correct OS version.
* fileio.c (Fread_file_name): Call x_file_dialog on carbon onSteven Tamm2004-08-261-73/+143
| | | | | tool-bar/menu click macfns.c (Fx_file_dialog): Implemented using NavServices
* * macfns.c (Fx_display_color_cells): Do not limit return value to 256.Jan Djärv2004-06-171-2/+2
| | | | | * macterm.c (mac_initialize_display_info): Initialize n_planes correctly on Mac OSX.
* (x_create_tip_frame): Fix Mac OS X 10.1 compilation problem due to newly ↵Steven Tamm2004-06-061-2/+4
| | | | defined variable
* (x_create_tip_frame): Fix declaration after statement.Andreas Schwab2004-06-051-2/+2
|
* Support Tooltips with the Carbon emacs port.Steven Tamm2004-05-301-136/+255
| | | | Some code cleanup using helper macros.
* Various fixes to support USE_LSB_TAG with carbon emacs. Mostly fixingSteven Tamm2004-05-141-1/+1
| | | | prototypes and confusions between pointers and lisp objects
* macfns.c: Default to using tool-bar by setting tool-bar-lines to 1 inSteven Tamm2004-05-121-1/+1
| | | | default-frame-alist.
* (x_list_fonts, x_get_font_info, x_load_font)Kim F. Storm2004-03-111-15/+0
| | | | | | | (x_query_font, x_find_ccl_program, x_set_window_size) (x_make_frame_visible, mac_initialize, XCreatePixmap) (XCreatePixmapFromBitmapData, XFreePixmap, XSetForeground) (mac_draw_line_to_pixmap): Move prototypes to macterm.h.
* * image.c [MAC_OSX]: Include sys/stat.hSteven Tamm2004-03-111-16/+0
| | | | | * macfns.c (syms_of_macfns): Remove definitions of things now defined in image.c
* Image consolidation:Kim F. Storm2004-03-111-5928/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (Vx_bitmap_file_path, Vimage_cache_eviction_delay) (x_bitmap_height, x_bitmap_width, x_bitmap_pixmap) (x_reference_bitmap, x_create_bitmap_from_data) (x_create_bitmap_from_file, x_destroy_bitmap) (x_destroy_all_bitmaps, x_create_bitmap_mask) (XGetImage, XPutPixel, XGetPixel, XDestroyImage) (QCascent, QCmargin, QCrelief, QCconversion, QCcolor_symbols) (QCheuristic_mask, QCindex, QCmatrix, QCcolor_adjustment, QCmask) (Qlaplace, Qemboss, Qedge_detection, Qheuristic, Qcenter) (define_image_type, lookup_image_type, valid_image_p) (image_error, enum image_value_type, struct image_keyword) (parse_image_spec, image_spec_value, Fimage_size, Fimage_mask_p) (make_image, free_image, prepare_image_for_display, image_ascent) (four_corners_best, image_background, image_background_transparent) (x_clear_image_1, x_clear_image, x_alloc_image_color) (make_image_cache, free_image_cache, clear_image_cache) (Fclear_image_cache, postprocess_image, lookup_image, cache_image) (forall_images_in_image_cache, x_create_x_image_and_pixmap) (x_destroy_x_image, x_put_x_image, x_find_image_file, slurp_file) (find_image_fsspec, image_load_qt_1, image_load_quicktime) (init_image_func_pointer, image_load_quartz2d) (struct ct_color, init_color_table, free_color_table) (lookup_rgb_color, lookup_pixel_color, colors_in_color_table) (cross_disabled_images, x_to_xcolors, x_from_xcolors) (x_detect_edges, x_emboss, x_laplace, x_edge_detection) (x_disable_image, x_build_heuristic_mask) (XBM support, XPM support, PBM support, PNG support, JPEG support) (TIFF support, GIF support, Ghostscript support): Merge with image code from xfns.c and macfns.c into image.c. (syms_of_xfns): Move image related symbols to image.c. (init_external_image_libraries, init_xfns): Remove; initialization moved to init_image in image.c.
* Inserting Yamomotosan's changes for MacOSX image support, better supportSteven Tamm2004-02-261-811/+2126
| | | | of Asian fonts, and some long awaited header cleanup and centralization.
* macfns.c, w32fns.c (Fx_change_window_property):Jan Djärv2004-02-071-5/+18
| | | | Make doc string and parameters same as for X version.
* (Qimage): Remove extern (now in lisp.h).Kim F. Storm2003-12-281-7/+2
| | | | (valid_image_p, parse_image_spec): Use IMAGEP macro.
* Add arch taglinesMiles Bader2003-09-011-0/+3
|
* Make (several) trivial substitutions for renamed andKim F. Storm2003-05-241-38/+42
| | | | | new macros in dispextern.h, frame.h and window.h. (x_real_positions): Set f->x_pixels_diff and f->y_pixels_diff to 0.
* Fix build on Mac OS X with Carbon.Andrew Choi2003-04-011-2/+0
|
* (Qauto_raise, Qauto_lower, ...): Remove vars for frameKim F. Storm2003-03-311-1250/+64
| | | | | | | | | | | | | | | | | | | parameters now defined in frame.h and frame.c. (Vx_resource_name): Remove. Use generic var. (check_x_display_info): Make non-static (for frame.c). (struct x_frame_parm_table, x_frame_parms): Remove. (init_x_parm_symbols, x_set_frame_parameters, x_report_frame_params) (x_set_line_spacing, x_set_screen_gamma, x_icon_type, x_set_font) (x_set_border_width, x_set_internal_border_width, x_set_visibility) (x_change_window_heights, x_set_autoraise, x_set_autolower) (x_set_vertical_scroll_bars, x_set_scroll_bar_width) (validate_x_resource_name, Fx_get_resource, x_get_resource_string) (x_default_parameter, Fx_parse_geometry, x_figure_window_size): Remove. Use generic functions instead. (enum resource_types): Remove. (x_set_scroll_bar_default_width): New global function (for frame.c). (mac_frame_parm_handlers): New table for redisplay_interface. (syms_of_macfns): Don't intern/staticpro removed vars.
* (x_set_mouse_color): Setup hand_cursor instead of cross_cursor.Kim F. Storm2003-03-211-11/+12
| | | | (x_set_cursor_color): Use x_display_and_set_cursor instead of x_display_cursor.
* Use generic compute_fringe_widths.Kim F. Storm2003-03-121-1/+1
|
* 2003-01-28 Andrew Choi <akochoi@shaw.ca>Andrew Choi2003-01-281-2/+2
| | | | | * macfns.c (x_to_mac_color): Correct the order for parsing the RGB values in old-style RGB specs.
* (syms_of_macfns) <Vx_bitmap_file_path>: Doc fix.Dave Love2003-01-061-1/+1
|
* Remove definition of XColor.Juanma Barranquero2002-10-231-10/+0
|
* Fix typo in comment.Juanma Barranquero2002-10-181-6/+6
|
* * frame.c (Vdelete_frame_functions): New variable.John Paul Wallington2002-10-021-0/+5
| | | | | | | | | | | | (syms_of_frame): Initialize and defvar it. (Fdelete_frame): Use it instead of delete-frame-hook. Don't run it when frame's `tooltip' parameter is non-nil. * xfns.c (x_create_tip_frame): Set `tooltip' frame parameter to t. * w32fns.c (x_create_tip_frame): Likewise * macfns.c (x_create_tip_frame): Likewise.
* (Fx_server_max_request_size): Fix spacing.Juanma Barranquero2002-09-061-241/+241
|
* 2002-08-30 Andrew Choi <akochoi@shaw.ca>Andrew Choi2002-08-301-0/+2
| | | | * macfns.c (Qbox): Add extern declaration.
* (Qbar, Qbox): Removed.Kim F. Storm2002-08-301-6/+0
| | | | (syms_of_macfns): Don't intern or staticpro them.
* (x_specified_cursor_type): Removed.Kim F. Storm2002-08-301-39/+1
| | | | (x_set_cursor_type): Use set_frame_cursor_types.
* 2002-07-31 Andrew Choi <akochoi@shaw.ca>Andrew Choi2002-08-011-1/+1
| | | | * macfns.c: #undef init_process before #define-ing it.
* * macfns.c (validate_x_resource_name): Use SSET.Ken Raeburn2002-07-161-1/+1
|
* Most uses of XSTRING combined with STRING_BYTES or indirection changed toKen Raeburn2002-07-151-96/+96
| | | | | SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references left unchanged for now.
* Use macro SPECPDL_INDEX.Juanma Barranquero2002-07-111-3/+3
|
* Rename BINDING_STACK_SIZE to SPECPDL_INDEX.Juanma Barranquero2002-07-101-2/+2
|
* Fix typo.Juanma Barranquero2002-07-091-1/+1
|
* In src/:Andrew Choi2002-06-161-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-06-16 Andrew Choi <akochoi@shaw.ca> * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of Vdefault_fontset to Monaco with mac-roman coding. * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine init_process before and after inclusion of Carbon/Carbon.h, resp. * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and cursor_gc. (add_font_name_table_entry): New function. (init_font_name_table): Use add_font_name_table_entry; add italic, bold, and bold-italic entries for truetype fonts. * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces for Mac too. (try_font_list) [MAC_OS]: If no font matches given registry, try fonts with any registry matching face_family. (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here. * s/darwin.h: If autoconf detects the Ncurses library, define LIBS_TERMCAP to -lncurses to use it. In lisp/: 2002-06-16 Andrew Choi <akochoi@shaw.ca> * term/mac-win.el (scalable-fonts-allowed): Set to t.
* * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING insteadKen Raeburn2002-05-201-1/+1
| | | | of XSYMBOL and name field.
* (x_create_bitmap_from_file, x_find_image_file): Update call to openp.Stefan Monnier2002-04-301-2/+2
|
* Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,Andrew Choi2002-04-261-0/+10255
lisp/ChangeLog, and src/ChangeLog for list of changes.