summaryrefslogtreecommitdiff
path: root/src/xfns.c
Commit message (Collapse)AuthorAgeFilesLines
* Don't include signal.h.Richard M. Stallman2005-05-101-1/+0
|
* (start_hourglass): Do nothing when running on a tty.Thien-Thi Nguyen2005-05-071-0/+4
|
* h* xfns.c (x_create_tip_frame): Removed setting of Vx_resource_name soJan Djärv2005-03-181-4/+0
| | | | that it doesn't become "tooltip". The specbind is enough.
* (xic_create_fontsetname): Add a final catch-all font pattern.Stefan Monnier2005-03-181-3/+18
|
* (xic_create_fontsetname): Add `motif' argument.Stefan Monnier2005-03-171-14/+24
| | | | | Always return a freshly allocated string. (xic_create_xfontset): Adjust call.
* (xic_defaut_fontset): New constant.Stefan Monnier2005-03-121-44/+95
| | | | | | | (xic_create_fontsetname): New function. Extracted from create_frame_xic. Try to generate a slightly better fontset. (xic_create_xfontset): Use it. (create_frame_xic): Simplify.
* * xfns.c (hourglass_started): New function.Jan Djärv2005-03-101-0/+8
|
* (hack_wm_protocols): Use correct type for last parameterAndreas Schwab2005-02-171-18/+26
| | | | | of XGetWindowProperty to avoid aliasing issues. (Fx_window_property): Likewise.
* (x_set_tool_bar_lines): Check that width and height is greater thanJan Djärv2005-02-071-4/+8
| | | | zero before clearing area.
* * xfns.c (Fx_change_window_property): Use long array when format is 32.Jan Djärv2005-02-071-2/+31
| | | | | (Fx_window_property): If format is 32 and long is bigger than 32 bits, convert long array returned from XGetWindowProperty to an int array.
* * xfns.c (Fx_backspace_delete_keys_p): Added comment about theJan Djärv2005-02-071-0/+16
| | | | reason for the approach in the code.
* Copyright update.Stefan Monnier2005-02-031-2/+2
|
* (unwind_create_frame) [!GLYPH_DEBUG]: Fix xassert.Kim F. Storm2005-02-031-2/+4
|
* * xfns.c (show_hourglass): Use FRAME_X_WINDOW as parent for GTK,Jan Djärv2005-01-291-2/+6
| | | | button events are not received otherwise.
* * xmenu.c (popup_get_selection): Pop down on C-g.Jan Djärv2004-12-271-0/+10
| | | | | | | | | | | | | | (set_frame_menubar): Install translations for Lucid/Motif/Lesstif that pops down menu on C-g. (xdialog_show): If dialog popped down and no button in the dialog was pushed, call Fsignal to quit. (xmenu_show): In no toolkit version, if menu returns NO_SELECT call Fsignal to quit. * xfns.c (Fx_file_dialog): Motif/Lesstif version: Pop down on C-g. * gtkutil.c (xg_initialize): Install bindings for C-g so that dialogs and menus pop down.
* * gtkutil.c (xg_get_file_name): Rename use-old-gtk-file-dialog toJan Djärv2004-11-231-8/+12
| | | | | | | | x-use-old-gtk-file-dialog. * xfns.c: Define x_use_old_gtk_file_dialog. (syms_of_xfns): Rename use-old-gtk-file-dialog to x-... Move it outside ifdef USE_GTK.
* * xmenu.c (x_menu_in_use): Removed.Jan Djärv2004-11-161-2/+3
| | | | | | | | | (x_menu_set_in_use): Also set popup_activated_flag. * xfns.c (Fx_file_dialog): Call popup_activated instead of x_menu_in_use. Call x_menu_set_in_use in Motif version also. * xterm.h: (x_menu_in_use): Removed.
* * xfns.c (Fx_file_dialog): Call x_menu_in_use and x_menu_set_in_use.Jan Djärv2004-11-141-5/+40
| | | | Record unwind with clean_up_file_dialog.
* * gtkutil.h: Declare use_old_gtk_file_dialog.Jan Djärv2004-11-041-0/+8
| | | | | | * gtkutil.c: Make use_old_gtk_file_dialog non-static. (xg_initialize): Moved DEFVAR_BOOL for use_old_gtk_file_dialog ... * xfns.c (syms_of_xfns): ... to here.
* * fileio.c (Fread_file_name): Pass Qt as fifth parameter toJan Djärv2004-11-021-41/+42
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* (Fx_server_vendor, Fx_server_version): Doc fixes.Richard M. Stallman2004-10-281-2/+4
|
* * xfns.c (xic_create_xfontset): Check that FRAME_XIC_BASE_FONTNAMEJan Djärv2004-10-261-0/+1
| | | | is not NULL before strcmp.
* * xfns.c (xic_create_xfontset): Initialize missing_list to NULL.Jan Djärv2004-10-221-7/+9
|
* * xterm.h (x_output): New member `xic_base_fontname'.Jan Djärv2004-10-211-12/+64
| | | | | | | | | | | | | (FRAME_XIC_BASE_FONTNAME): New macro. (xic_free_xfontset): Declare. * xfns.c (xic_create_xfontset): Share fontsets between frames based on base_fontname. (xic_free_xfontset): New function. (free_frame_xic): Use it. (xic_set_xfontset): Ditto. * xterm.c (xim_destroy_callback): Ditto.
* * xfns.c (syms_of_xfns): defsubr x-file-dialog for GTK also.Jan Djärv2004-10-111-1/+1
|
* * xfns.c (x_set_name_internal): New function. Check if we shall callJan Djärv2004-09-021-112/+75
| | | | | xfree before ENCODE_UTF_8. (x_set_name, x_set_title): Call x_set_name_internal.
* * xfns.c (x_window_to_frame, x_any_window_to_frame)Jan Djärv2004-08-241-0/+10
| | | | | (x_non_menubar_window_to_frame, x_menubar_window_to_frame) (x_top_window_to_frame): Return 0 if wdesc is None.
* * xfns.c (x_set_name, x_set_title): Encode title to UTF8 beforeJan Djärv2004-08-191-2/+2
| | | | passing it to gtk_window_set_title.
* (x_icon_verify): New function.Luc Teirlinck2004-07-241-0/+24
| | | | | | (Fx_create_frame): Use it. (From Richard M. Stallman.)
* * xfns.c (syms_of_xfns): Provide x-toolkit also for GTK.Jan Djärv2004-05-121-0/+5
|
* (x_create_tip_frame): Bind inhibit-read-only andKenichi Handa2004-05-101-0/+2
| | | | | inhibit-modification-hooks to t temporarily before calling Ferase_buffer.
* (x_find_image_file): Remove prototype.Kim F. Storm2004-03-141-2/+0
|
* Image consolidation:Kim F. Storm2004-03-111-5648/+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) (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) (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 w32fns.c and macfns.c image code into image.c. (syms_of_xfns): Move image related symbols to image.c. (init_xfns): Remove; initialization moved to init_image in image.c.
* * xfns.c (Fx_display_color_cells): Use number of planes to calculateJan Djärv2004-03-011-2/+11
| | | | how many colors can be displayed.
* xfns.c (x_window): Fixed indentationJan Djärv2004-02-281-1/+1
| | | | | | * xterm.c (x_calc_absolute_position): Call x_real_positions to get WM window sizes and use those to calculate position. (x_set_offset): Removed code commented out.
* Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-114Miles Bader2004-02-251-2/+1
| | | | | | | | | | | | | | | Merge some minor redisplay bug-fixes from emacs--tiling--0 Patches applied: * miles@gnu.org--gnu-2004/emacs--tiling--0--patch-9 Remove bogus xassert * miles@gnu.org--gnu-2004/emacs--tiling--0--patch-10 Avoid negative descents for images with ascent > height * miles@gnu.org--gnu-2004/emacs--tiling--0--patch-13 Fix iterator-inconsistency bug in redisplay
* * xfns.c (x_create_bitmap_mask): Removed unused variable depth.Jan Djärv2004-02-051-5/+2
| | | | | | (x_set_menu_bar_lines): Added ! defined USE_GTK for olines. (Fx_change_window_property): Add declaration of parameters type and format. Remove unused variable cons.
* * xfns.c (x-send-client-message): Moved to xselect.cJan Djärv2004-02-031-141/+129
| | | | | | | | | (Fx_change_window_property): Add optional arguments TYPE, FORMAT and OUTER_P. (Fx_window_property): Add optional arguments TYPE, SOURCE, DELETE_P, VECTOR_RET_P. Handle AnyPropertyType. Call x_property_data_to_lisp if vector_ret_p is true. (syms_of_xfns): Sx_send_client_message moved to xselect.c.
* (x_set_mouse_color): Remove bogus x_check_errors call.Kim F. Storm2003-12-281-8/+2
| | | | | (Qimage): Remove extern (now in lisp.h). (valid_image_p, parse_image_spec): Use IMAGEP macro.
* Implement multiple display handling for GTK.Jan Djärv2003-11-161-19/+19
|
* * xfns.c (x_window): Set XtNx and XtNy in shell widget forJan Djärv2003-11-091-4/+14
| | | | program specified positions.
* * xfns.c (Fx_send_client_event): Remove unused variable s.Jan Djärv2003-10-051-2/+1
|
* * xfns.c (Fx_send_client_event): New function as a base forJan Djärv2003-10-051-0/+121
| | | | manipulating extended window manager hints.
* Fix memory leaks (from YAMAMOTO Mitsuharu)Jan Djärv2003-10-051-3/+0
|
* Add arch taglinesMiles Bader2003-09-011-0/+3
|
* Fix pixel calculation for TrueVisuals.Jan Djärv2003-08-301-12/+6
|
* (lookup_rgb_color): Handle TrueColor visuals specially.Gerd Moellmann2003-08-291-0/+36
|
* (Vgtk_version_string): New variable.Lute Kamstra2003-08-261-0/+21
| | | | (syms_of_xfns): DEFVAR_LISP it. Provide gtk.
* Create and initialize a client leader window so session managementJan Djärv2003-08-211-0/+13
| | | | doesn't restart Emacs twice.
* * xfns.c (xg_set_icon): Rewrite to compile with GTK 2.0 and 2.2.Jan Djärv2003-07-311-23/+38
| | | | * xterm.c (x_bitmap_icon): Return if xg_set_icon succeeds.