aboutsummaryrefslogtreecommitdiffstats
path: root/src/xfns.c
Commit message (Collapse)AuthorAgeFilesLines
* Replace `illegal' with `invalid'.Gerd Moellmann2000-08-051-2/+2
|
* (Fx_file_dialog): Use NULL instead of 0 at the end ofGerd Moellmann2000-08-031-1/+1
| | | | variable argument lists of XtVaGetValues and XtVaSetValues.
* Correct typo in a comment.Eli Zaretskii2000-07-231-1/+1
|
* *** empty log message ***Kenichi Handa2000-07-211-4/+12
|
* *** empty log message ***Kenichi Handa2000-07-211-16/+18
|
* (x_encode_text): New function.Kenichi Handa2000-07-211-20/+100
| | | | | (x_set_name): Use x_encode_text. (x_set_title): Likewise.
* (Fx_show_tip): If frame parameters contain a position,Gerd Moellmann2000-07-141-8/+43
| | | | use that instead of the mouse position. Add parameters DX and DY.
* (x_window) [!USE_XIM]: Don't call create_frame_ic.Gerd Moellmann2000-06-261-0/+4
|
* (Fimage_size): New function.Gerd Moellmann2000-06-261-1/+34
| | | | (syms_of_xfns): Defsubr it.
* (x_create_tip_frame): Initialize frame's colors likeGerd Moellmann2000-06-231-0/+25
| | | | in x_create_frame.
* (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle eventsGerd Moellmann2000-06-221-1/+12
| | | | differently.
* fix jpeg error-handling setupKen Raeburn2000-06-191-1/+1
|
* (x_set_frame_parameters): Comment fix.Gerd Moellmann2000-06-131-2/+4
|
* (x_real_positions): Declare tmp_nchildren as unsigned.Dave Love2000-06-051-1/+1
|
* (Vimages_types): Moved to xdisp.c.Gerd Moellmann2000-05-191-9/+0
| | | | (syms_of_xfns): Move `image-types' to xdisp.c.
* (Qcenter): New variable.Gerd Moellmann2000-05-021-75/+56
| | | | | | | | | | | | | | | | (enum image_value_type): Add IMAGE_ASCENT_VALUE. (parse_image_spec): Handle IMAGE_ASCENT_VALUE. (image_ascent): New function. (lookup_image): Recognize `:ascent center'. (xbm_format, xpm_format, pbm_format, png_format, jpeg_format) (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE. (xbm_load): Don't set image's ascent here. (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p) (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't check ascent values here. (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed. (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions. (syms_of_xfns): Initialize Qcenter.
* (slurp_file): New function.Gerd Moellmann2000-04-271-139/+192
| | | | | | | | | | | | (xbm_image_p): Handle case of in-memory XBM files. (xbm_scan): Rewritten to work on memory buffers instead of files. (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data. Work on memory buffers instead of files. If DATA is null test if buffer looks like an in-memory XBM file. (xbm_load_image): Renamed from xbm_load_image_file. Work on memory buffers instead of files. (xbm_file_p): New function. (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
* (x_set_line_spacing): New function.Gerd Moellmann2000-04-241-25/+51
| | | | | | (Fx_create_frame): Set line spacing from resources. (Qline_spacing): New variable. (syms_of_xfns): Initialize Qline_spacing.
* (xpm_load) [DEBUG_X_COLORS]: Register colors.Gerd Moellmann2000-04-141-1/+6
|
* Fix Lisp_Object/int type confusion revealed by making Lisp_Object a union type:Ken Raeburn2000-04-011-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | * xdisp.c (compute_string_pos): Fix order of arguments to string_pos_nchars_ahead. (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as count arg to variable-arg routines like Frun_hook_with_args and Fformat. (back_to_previous_visible_line_start, build_desired_tool_bar_string): Pass Lisp_Object, not int, to fixed-arg routines like Fget_char_property and Fmake_string. (reconsider_clip_changes): Use XINT when comparing integer lisp objects, or passing them as int arguments. (mark_window_display_accurate, insert_left_trunc_glyphs, append_space, extend_face_to_end_of_line): Use make_number when storing or passing integer values as lisp objects. (set_cursor_from_row, highlight_trailing_whitespace): Use INTEGERP, not implicit test against zero, for glyph object. (try_window_id): Don't use make_number when we want an int value. * xfaces.c (xlfd_symbolic_value): Make last argument a Lisp_Object, to be consistent with callers. (Fbitmap_spec_p): Use XINT to get numeric value of height. (lface_hash): Apply XFASTINT to lisp values before folding in. * xfns.c (Fx_show_tip): Use make_number to get lisp objects to fill in window width and height. Pass an int, not a lisp object, as first arg to Finsert.
* (free_image_cache): Free the cache structure itselfGerd Moellmann2000-03-301-4/+16
| | | | last, after all its members have been freed.
* (x_set_cursor_color): Get color reference counts right.Gerd Moellmann2000-03-271-4/+27
|
* (x_specified_cursor_type): New function.Gerd Moellmann2000-03-271-10/+30
| | | | (x_set_cursor_type): Use it.
* (Fx_create_frame): Don't cal fs_register_fontset.Kenichi Handa2000-03-211-25/+34
| | | | | (x_create_tip_frame): Likewise. (Fx_close_connection): Free full_name of font_info.
* * xfns.c (select_visual): Don't set dpyinfo->n_planes to theGerd Moellmann2000-03-191-14/+1
| | | | | number of bits per RGB because it's everywhere used as the depth of the visual.
* (X_I18N_INHIBITED): Don't define.Gerd Moellmann2000-03-141-16/+2
| | | | | | (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED. (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
* (x_defined_color): Rewritten to use x_allocate_nearest_color.Gerd Moellmann2000-03-121-84/+16
|
* (x_set_cursor_type): If ARG is nil, give frame no cursor.Gerd Moellmann2000-03-081-2/+6
|
* Remove a buch of really old code in #if 0.Gerd Moellmann2000-03-071-924/+31
| | | | (Fx_focus_frame): New function.
* (x_set_menu_bar_lines_1): Adjust window's orig_top andGerd Moellmann2000-03-061-0/+5
| | | | orig_height if set.
* (QCdata): Moved to xdisp.c.Gerd Moellmann2000-03-051-3/+2
|
* (select_visual): Rewritten. Recognize user-specifiedGerd Moellmann2000-03-051-42/+117
| | | | | visual classes. (visual_classes): New variable.
* (x_defined_color, x_set_mouse_color, lookup_rgb_color)Gerd Moellmann2000-03-041-39/+72
| | | | | | | | | | | | (lookup_pixel_color, x_laplace, x_build_heuristic_mask) (png_load): Access colormap of frame using FRAME_X_COLORMAP. (x_decode_color): Don't handle allocation of white and black specially. (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and XtNcolormap resources. (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow. (Fx_create_frame): Initialize color members of x_output structure. (xpm_load): Pass colormap to XPM lib.
* (x_clear_image, x_kill_gs_process): Use x_free_colors.Gerd Moellmann2000-03-021-20/+4
|
* (start_busy_cursor): Allow floats for busy-cursor-delay.Gerd Moellmann2000-03-011-3/+11
|
* (cancel_busy_cursor): Set busy_cursor_atimer to nullGerd Moellmann2000-02-291-1/+5
| | | | after canceling it.
* (inhibit_busy_cursor, busy_count): Removed.Gerd Moellmann2000-02-251-69/+114
| | | | | | | | | | (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed. (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New variables. (DEFAULT_BUSY_CURSOR_DELAY): New define. (start_busy_cursor, cancel_busy_cursor, show_busy_cursor) (hide_busy_cursor): New functions. (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
* (x_window_to_frame, x_any_window_to_frame)Gerd Moellmann2000-02-211-19/+29
| | | | (x_non_menubar_window_to_frame): Check the busy-cursor window.
* (create_frame_xic): Fix initialization of automatic aggregates for pcc.Dave Love2000-02-101-2/+4
|
* (xic_set_preeditarea): Take window parameter andGerd Moellmann2000-01-291-56/+304
| | | | | | | | | | | | | | | | window-relative pixel-positions. (x_create_im): Removed. (DEFAULT_STYLE, DEFAULT_FONT): Removed. (supported_xim_styles): Renamed from supported_styles. (best_xim_style): Renamed from best_style. (create_frame_xic): Renamed from xic_create_frame. (free_frame_xic): Renamed from xic_destroy_frame. (supported_styles): New variable. (DEFAULT_STYLE, DEFAULT_FONT): New macros (xic_create_xfontset, best_style, xic_create_frame) (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea) (xic_set_xfontset): New functions.
* (x_window): Call lw_create_widget with new parameterGerd Moellmann2000-01-171-0/+1
| | | | list.
* (x_create_im): New function to set IM and IC of a frame.Gerd Moellmann2000-01-041-63/+69
| | | | | | Check that input style is supported before trying to create an IC for it. (x_window): Call x_create_im.
* (current_gif_memory_src): New variable.Gerd Moellmann2000-01-041-2/+7
| | | | | | (gif_load): Record the address of the current memory source in current_gif_memory_src. (gif_read_from_memory): Use current_gif_memory_src.
* (x_create_x_image_and_pixmap): Remove parameter file.Gerd Moellmann2000-01-011-54/+43
| | | | | | | | All calls adjusted. (x_build_heuristic_mask): Likewise. (xbm_load_image_from_file): Change error output. (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load) (gif_load, gs_load, x_kill_gs_process): Ditto.
* (gif_load): Avoid sign extension and thus out of boundsGerd Moellmann2000-01-011-92/+116
| | | | | | | | | | | | color indices when accessing raster pixels. (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only one of :file or :data. (enum pbm_keyword_index): Add PBM_DATA. (pbm_format): Add :data. (pbm_image_p): Allow either :file or :data. (pbm_read_file): New function. (pbm_scan_number): Rewritten to read from string. (pbm_load): Support :data.
* (gif_load): Avoid sign extension and thus out of boundsGerd Moellmann2000-01-011-4/+8
| | | | color indices when accessing raster pixels.
* New image functions adapted to Emacs conventions.Gerd Moellmann1999-12-311-254/+300
| | | | | (png_load, tiff_load, jpeg_load, gif_load): Always GCPRO local variable `file'.
* Changes to xfns.c to support reading images from a memory buffer instead of ↵William M. Perry1999-12-311-133/+360
| | | | forcing them to be on disk. GIF/JPEG/PNG/TIFF currently support this.
* (enum jpeg_keyword_index): Add JPEG_DATA.Gerd Moellmann1999-12-311-19/+139
| | | | | | | | (jpeg_format): Add :data. (jpeg_image_p): Handle :data. (our_fill_input_buffer, our_skip_input_data, our_term_source) (jpeg_memory_src): New functions. (jpeg_load): Read image from string data.
* (Fx_show_tip): Gcpro `timeout' too.Dave Love1999-12-221-2/+2
|