summaryrefslogtreecommitdiff
path: root/oldXMenu/Activate.c
Commit message (Collapse)AuthorAgeFilesLines
* ; Add 2024 to copyright yearsPo Lu2024-01-021-1/+1
|
* ; Add 2023 to copyright years.Eli Zaretskii2023-01-011-1/+1
|
* Fix delivery of window manager ping events during menuPo Lu2022-10-211-10/+0
| | | | | | | | | | * oldXMenu/Activate.c (XMenuActivateSetExposeFunction) (XMenuActivate): * oldXMenu/XMenu.h: Remove expose functions. * src/msdos.h (XMenuSetAEQ): Remove no longer used function. * src/xmenu.c (x_menu_expose_event): Delete function. (x_menu_dispatch_event): New function. (x_menu_show): Set it as the XMenu event handler.
* Another fix for the no-toolkit buildPaul Eggert2022-03-141-5/+2
| | | | | | | This should be better in the long run. * oldXMenu/Activate.c (XMenuActivate): Revert previous change, eliminating the goto it introduced. * oldXMenu/XMenuInt.h: Include <attribute.h>, for FALLTHROUGH.
* Fix the no toolkit buildPo Lu2022-03-141-2/+5
| | | | | * Activate.c (XMenuActivate): Stop relying on fallthroughs inside switch statement. (bug#54382)
* Correctly handle exposure in oldXMenuPo Lu2022-03-071-0/+10
| | | | | | | | | | | | * oldXMenu/Activate.c (XMenuActivate): Call set expose_func if no pane was found. (XMenuActivateSetExposeFunction): New function. * oldXMenu/XMenu.h: New typedef `expose_func'. Update prototypes. * src/xmenu.c (x_menu_expose_event): New function. (x_menu_show): Set expose event handler. * src/xterm.c (x_dispatch_event): Make `static' only on GTK. * src/xterm.h: Expose `x_dispatch_event' on no-toolkit builds.
* Fix persistent help text on disabled menu itemsPo Lu2022-03-021-3/+3
| | | | | * oldXMenu/Activate.c (XMenuActivate): Always deactivate help echo upon leaving a menu item.
* Dismiss help text when item becomes unactivated on oldXMenuPo Lu2022-03-021-0/+3
| | | | | * oldXMenu/Activate.c (XMenuActivate): Dismiss help text when leaving an item.
* Fix old X menu on builds with XI2Po Lu2022-03-011-0/+13
| | | | | | | | | | | * oldXMenu/Activate.c (XMenuActivateSetTranslateFunction): New function. (XMenuActivate): Handle generic events. * oldXMenu/XMenu.h: New prototypes. (Translate_func): New type. * src/xmenu.c (x_menu_wait_translate_generic_event): New function. (x_menu_show): Set translate function.
* ; Add 2022 to copyright years.Eli Zaretskii2022-01-011-1/+1
|
* ; Copy contents of oldXMenu/copyright.h into oldXMenu/*.[ch] filesEli Zaretskii2021-08-291-1/+19
|
* Update copyright year to 2021Paul Eggert2021-01-011-1/+1
| | | | Run "TZ=UTC0 admin/update-copyright".
* Update copyright year to 2020Paul Eggert2020-01-011-1/+1
| | | | Run "TZ=UTC0 admin/update-copyright $(git ls-files)".
* Update copyright year to 2019Paul Eggert2019-01-011-1/+1
| | | | Run 'TZ=UTC0 admin/update-copyright $(git ls-files)'.
* Update copyright year to 2018Paul Eggert2018-01-011-1/+1
| | | | Run admin/update-copyright.
* Pacify GCC when configured --with-x-toolkit=noPaul Eggert2017-11-111-0/+1
| | | | | | | | Without these changes, Emacs does not build on Fedora 26 x86-64 when configured --with-x-toolkit=no --enable-gcc-warnings. * oldXMenu/Activate.c (XMenuActivate): Add FALLTHROUGH. * src/xterm.c (x_dispatch_event): Define only if USE_X_TOOLKIT || USE_MOTIF || USE_GTK.
* Prefer HTTPS to FTP and HTTP in documentationPaul Eggert2017-09-131-1/+1
| | | | | | | | | | | | | Most of this change is to boilerplate commentary such as license URLs. This change was prompted by ftp://ftp.gnu.org's going-away party, planned for November. Change these FTP URLs to https://ftp.gnu.org instead. Make similar changes for URLs to other organizations moving away from FTP. Also, change HTTP to HTTPS for URLs to gnu.org and fsf.org when this works, as this will further help defend against man-in-the-middle attacks (for this part I omitted the MS-DOS and MS-Windows sources and the test tarballs to keep the workload down). HTTPS is not fully working to lists.gnu.org so I left those URLs alone for now.
* Update copyright year to 2017Paul Eggert2016-12-311-1/+1
| | | | Run admin/update-copyright.
* Rework C source files to avoid ^(Paul Eggert2016-03-101-2/+2
| | | | | | | | Work around Bug#22884 by rewording comments and strings to avoid ‘(’ at the start of a line unless it starts a function. This change is a short-term hack; in the longer run we plan to fix cc-mode’s performance for C files that have ‘(’ at the start of a line in a comment or string.
* Update copyright year to 2016Paul Eggert2016-01-011-1/+1
| | | | Run admin/update-copyright.
* Update copyright year to 2015Paul Eggert2015-01-011-1/+1
| | | | Run admin/update-copyright.
* Update copyright year to 2014 by running admin/update-copyright.Paul Eggert2014-01-011-1/+1
|
* Merge from emacs-24; up to 2012-12-06T01:39:03Z!monnier@iro.umontreal.caPaul Eggert2013-01-021-1/+1
|\
| * Update copyright notices for 2013.Paul Eggert2013-01-011-1/+1
| |
* | Include <config.h> uniformly in oldXMenu sources.Paul Eggert2012-12-041-1/+0
|/ | | | | | | | | | * Activate.c, AddPane.c, AddSel.c, ChgPane.c, ChgSel.c, Create.c: * InsPane.c, InsSel.c, Internal.c, XMakeAssoc.c: Do not include <config.h>, since XMenuInt.h does that now. * XLookAssoc.c, XMenuInt.h: Include <config.h>. This avoids a build failure when configuring on Fedora 17 --with-x-toolkit=no, reported by Dmitry Andropov in <http://lists.gnu.org/archive/html/emacs-devel/2012-12/msg00078.html>.
* Add 2012 to FSF copyright years for Emacs filesGlenn Morris2012-01-051-1/+1
|
* Spelling fixes.Paul Eggert2011-11-221-1/+1
|
* Modernize to C89, for better static checking.Paul Eggert2011-04-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Activate.c (XMenuActivate): Callback's first arg is readonly. * AddPane.c (XMenuAddPane): Label is readonly. Rename local to avoid shadowing. * AddSel.c (XMenuAddSelection): Help arg is readonly. Rename local. * Create.c (atoi, atof): Remove decls; include <stdlib.h>. (MAX_INACT_PNUM, TILE_BUF_SIZE): Remove; unused. (x_get_resource_string): Args are readonly. (XAllocDisplayColor): colorName is readonly. (XMenuCreate): def_env is readonly. Remove unused locals. Avoid "else;". * Destroy.c (XMenuDestroy): Return void. * Error.c (XMenuError): Remove const pointer. * EvHand.c (XMenuEventHandler): Return void. * FindPane.c, FindSel.c: Include <string.h>. * InsPane.c (XMenuInsertPane): Rename local to avoid shadowing. * InsSel.c (XMenuInsertSelection): Likewise. * Internal.c (toggle_color, BUFFER_SIZE): Remove; unused. (_XMErrorList): Now const. (_XMWinQueInit, _XMRecomputeGlobals, _XMTransToOrigin, _XMRefreshPane): (_XMRefreshSelection): Return void. (_XMWinQueFlush, _XMRefreshSelection): Rename locals to avoid shadowing. (_XMWinQueFlush): Use stack, not heap. Don't use uninitialized var. * SetAEQ.c (XMenuSetAEQ): Now returns void. * SetFrz.c (XMenuSetFreeze): Likewise. * X10.h (XAssoc): Use void * for generic pointer. * XDelAssoc.c: Include XMenuInt.h rather than duplicating part of it. * XDestAssoc.c, XMakeAssoc.c: Likewise. * XDestAssoc.c (XDestroyAssocTable): Return void. * XMakeAssoc.c (XMakeAssoc): Use void * for generic pointer. * XMenu.h, XMenuInt.h: Adjust to signature changes. Use const for pointers to readonly storage. * insque.c: Include XMenuInt.h, to check our own signature. (emacs_insque, emacs_remque): Use void * for generic pointers.
* Convert consecutive FSF copyright years to ranges.Glenn Morris2011-01-241-3/+1
|
* Nuke arch-tags.Glenn Morris2011-01-151-2/+0
|
* Merge from emacs-23Stefan Monnier2011-01-141-1/+1
|\
| * Add 2011 to FSF/AIST copyright years.Glenn Morris2011-01-021-1/+1
| |
* | Convert function definitions in oldXMenu to standard C.Dan Nicolaescu2010-07-031-16/+11
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * oldXMenu/Activate.c: Convert function definitions to standard C. * oldXMenu/AddPane.c: * oldXMenu/AddSel.c: * oldXMenu/ChgPane.c: * oldXMenu/ChgSel.c: * oldXMenu/Create.c: * oldXMenu/DelPane.c: * oldXMenu/DelSel.c: * oldXMenu/Destroy.c: * oldXMenu/Error.c: * oldXMenu/EvHand.c: * oldXMenu/FindPane.c: * oldXMenu/FindSel.c: * oldXMenu/InsPane.c: * oldXMenu/InsSel.c: * oldXMenu/Internal.c: * oldXMenu/Locate.c: * oldXMenu/Post.c: * oldXMenu/Recomp.c: * oldXMenu/SetAEQ.c: * oldXMenu/SetFrz.c: * oldXMenu/SetPane.c: * oldXMenu/SetSel.c: * oldXMenu/X10.h: * oldXMenu/XCrAssoc.c: * oldXMenu/XDelAssoc.c: * oldXMenu/XDestAssoc.c: * oldXMenu/XLookAssoc.c: * oldXMenu/XMakeAssoc.c: * oldXMenu/XMenu.h: * oldXMenu/XMenuInt.h: * oldXMenu/insque.c: Likewise.
* Add 2010 to copyright years.Glenn Morris2010-01-131-1/+1
|
* Add 2009 to copyright years.Glenn Morris2009-01-081-1/+1
|
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-091-7/+4
|
* Add 2008 to copyright years.Glenn Morris2008-01-071-1/+1
|
* Switch license to GPLv3 or later.Glenn Morris2007-07-251-1/+1
|
* Add GPL for FSF copyright.Glenn Morris2007-02-271-2/+20
|
* Add 2007 to copyright years.Glenn Morris2007-01-211-1/+1
|
* Update copyright years.Glenn Morris2006-12-101-1/+1
|
* Update years in copyright notice; nfc.Thien-Thi Nguyen2006-02-051-1/+2
|
* Update years in copyright notice; nfc.Thien-Thi Nguyen2005-08-161-0/+1
|
* * Activate.c (XMenuActivate): Return XM_NO_SELECT if Escape or C-gJan Djärv2004-12-271-0/+14
| | | | was pressed.
* * XMenu.h (XMenuActivateSetWaitFunction): New function.Jan Djärv2004-11-121-0/+17
| | | | | * Activate.c (XMenuActivateSetWaitFunction): New function. (XMenuActivate): Call wait_func if set, before XNextEvent.
* Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-196Miles Bader2004-04-101-1/+0
| | | | | | | | | | | | | | | | | | | Remove RCS keywords 2004-04-10 Miles Bader <miles@gnu.org> RCS keyword removal (only non-comment changes are enumerated here): * lisp/emacs-lisp/bytecomp.el (byte-compile-version): Variable removed. (byte-compile-insert-header): Don't use `byte-compile-version'. * lisp/url/url-vars.el (url-version): Use the constant string "Emacs" instead of calculating something from the RCS `State' keyword [the latter is almost entirely useless anyway]. * lisp/forms.el (forms-version): Variable removed. (forms-mode): Don't use `forms-version'. * lisp/recentf.el (recentf-version): Variable removed. * lisp/progmodes/delphi.el (delphi-version): Variable removed. * lisp/progmodes/ada-mode.el (ada-mode): RCS keyword removed from docstring.
* Add arch taglinesMiles Bader2003-09-011-1/+4
|
* Trailing whitespace deleted.Juanma Barranquero2003-02-041-27/+27
|
* Add calls to GrabKeyboard to remove strangeJan Djärv2002-04-221-1/+17
| | | | interactions with window managers that steal keypresses.
* (XMenuActivate): Call help callback with two moreGerd Moellmann2000-07-211-2/+3
| | | | arguments: the pane number and selection number.