]> git.eshelyaron.com Git - emacs.git/commit
* xterm.c: Fix problems found by static analysis with other toolkits.
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 16 Apr 2011 15:24:20 +0000 (08:24 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 16 Apr 2011 15:24:20 +0000 (08:24 -0700)
commit098db9dd8b385f13ab74a37046a4cd98c8b314d6
tree0d0d70bc5b76f328d3b274d8df0205341e341f9b
parenteb18f6cc6644a9e43204e5062f9fd45fdad8141f
* xterm.c: Fix problems found by static analysis with other toolkits.

(toolkit_scroll_bar_interaction): Define and use only if USE_X_TOOLKIT.
(x_dispatch_event): Declare static only if !USE_GTK && USE_X_TOOLKIT.
Define if USE_GTK || (HAVE_MENUS && USE_X_TOOLKIT); USE_MOTIF need
not be part of this test.
(SET_SAVED_BUTTON_EVENT): Define only if USE_X_TOOLKIT || USE_GTK.
* xterm.h (x_dispatch_event): Use USE_GTK, not USE_MOTIF, when testing
whether to declare.
* xterm.c, xterm.h (x_mouse_leave): Bring this function back, but only if
defined HAVE_MENUS && !defined USE_X_TOOLKIT && !defined USE_GTK.
src/ChangeLog
src/xterm.c
src/xterm.h