aboutsummaryrefslogtreecommitdiffstats
path: root/src/macmenu.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* macfns.c (mac_get_window_bounds): Add extern.Steven Tamm2004-10-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | (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.
* (add_menu_item): Remove unused variable `i'. Don'tSteven Tamm2004-09-021-3/+3
| | | | let separator items destroy refence constants of other menu items.
* * macmenu.c (_widget_value): Added lname and lkey.Jan Djärv2004-08-301-10/+43
| | | | | | | | (single_submenu): Set lname and lkey in widget_value instead of name and key. (update_submenu_strings): New function. (set_frame_menubar): Remove call to inhibit_garbage_collection, call update_submenu_strings.
* macmenu.c (mac_menu_show): Remove shadowing of menu variableSteven Tamm2004-08-301-6/+6
| | | | by using different names for inner loop variables.
* macmenu.c (ENCODE_MENU_STRING): Added to handle multibyteSteven Tamm2004-08-261-5/+25
| | | | | | | | strings in menu items. (single_submenu): Use ENCODE_MENU_STRING (mac_menu_show): Use ENCODE_MENU_STRING. Reset grabbed because button release isn't passed to event loop (add_menu_item): Use SetMenuItemWithCFString
* Support Tooltips with the Carbon emacs port.Steven Tamm2004-05-301-15/+3
| | | | Some code cleanup using helper macros.
* Various fixes to support USE_LSB_TAG with carbon emacs. Mostly fixingSteven Tamm2004-05-141-1/+2
| | | | prototypes and confusions between pointers and lisp objects
* Inserting Yamomotosan's changes for MacOSX image support, better supportSteven Tamm2004-02-261-28/+1
| | | | of Asian fonts, and some long awaited header cleanup and centralization.
* Add arch taglinesMiles Bader2003-09-011-0/+3
|
* (menubar_selection_callback): Don't pass uninitializedStefan Monnier2003-06-151-1/+2
| | | | data to kbd_buffer_store_event.
* Make (few) trivial substitutions for renamed andKim F. Storm2003-05-241-4/+2
| | | | new macros in dispextern.h, frame.h and window.h.
* Trailing whitespace deleted.Juanma Barranquero2003-02-041-33/+33
|
* * macmenu.c (MIN_POPUP_SUBMENU_ID): AddedSteven Tamm2002-12-221-24/+48
| | | | | | | (mac_menu_show): Added support for hierarchical popup menus (add_menu_item): Removed indentation support (fill_submenu, fill_menu): Now creates hierarchical menus instead of using indentation
* 2002-12-02 Andrew Choi <akochoi@shaw.ca>Andrew Choi2002-12-021-5/+7
| | | | | | | | | | | * macmenu.c (add_menu_item, fill_menubar): Truncate menu item names to 255 characters. * macterm.c (XTread_socket): If all frames have been collapsed, expand the first one before handling drag-and-drop events. * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID, which is detected by autoconf.
* 2002-10-06 Andrew Choi <akochoi@shaw.ca>Andrew Choi2002-10-071-1/+4
| | | | | * macmenu.c (mac_menu_show): Add j to count menu items; match menu_item_selection to it to find selected item.
* Most uses of XSTRING combined with STRING_BYTES or indirection changed toKen Raeburn2002-07-151-13/+13
| | | | | SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references left unchanged for now.
* Use macro SPECPDL_INDEX.Juanma Barranquero2002-07-111-1/+1
|
* In src/:Andrew Choi2002-06-161-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Remove declaration of Qmouse_click and Qevent_kind.Pavel Janík2002-06-121-2/+1
|
* Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,Andrew Choi2002-04-261-0/+2346
lisp/ChangeLog, and src/ChangeLog for list of changes.