annotate msdos/sedalloc.inp @ 107887:948294352a25

Don't redraw lucid menus more than needed. Use double buffer to reduce flicker. * xlwmenu.c: Include Shell.h, remove duplicate declaration of XlwMenuRedisplay. (display_menu_item): Replace ws->window with ws->pixmap, remove call to XftDrawRect. (display_menu): Remove this and that argument. Remove just_compute_this_one_p. Fill pixmap at start and copy it to window at end. (expose_cb): New function. (make_windows_if_needed): Replace XCreateWindow with XtCreatePopup. Add eventhandler for expose to expose_cb. Remove creation of xft_draw. (create_pixmap_for_menu): New function. (remap_menubar): Pop down menus that aren't the same as in old_stack. Set width, heigh, x, y on widget with XtVaSetValues. Call create_pixmap_for_menu. Replace XUnmapWindow with XtPopdown. Remowe two last parameters to display_menu. (map_event_to_widget_value, XlwMenuRedisplay, Key, Select) (pop_up_menu): Remowe two last parameters to display_menu. (XlwMenuRealize): Call create_pixmap_for_menu, set w and pixmap. Remove call to XftDrawCreate. (XlwMenuDestroy): Free pixmap. Call XtDestroyWidget instead of XDestroyWindow. (handle_motion_event): Only call handle_single_motion_event once. * xlwmenuP.h (window_state): Add pixmap and w.
author Jan D <jan.h.d@swipnet.se>
date Sat, 17 Apr 2010 19:49:18 +0200
parents 1d1d5d9bd884
children 376148b31b5e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
100556
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
1 # -sedalloc.inp-----------------------------------------------------------
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
2 # Configuration script for SYSTEM_MALLOC/REL_ALLOC in src/config.h
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
3 # ----------------------------------------------------------------------
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
4 #
106815
1d1d5d9bd884 Add 2010 to copyright years.
Glenn Morris <rgm@gnu.org>
parents: 100956
diff changeset
5 # Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
100556
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
6 #
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
7 # This file is part of GNU Emacs.
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
8 #
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
9 # This file is free software; as a special exception, the author gives
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
10 # unlimited permission to copy and/or distribute it, with or without
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
11 # modifications, as long as this notice is preserved.
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
12 #
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
13 # This program is distributed in the hope that it will be useful,
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
16 #
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
17 # ----------------------------------------------------------------------
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
18 /^#define GNU_MALLOC *1 *$/s|^.*$|/* #undef GNU_MALLOC */|
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
19 /^#define REL_ALLOC.*$/a\
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
20 \
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
21 /* Inserted by the --with-system-malloc switch to config.bat. */\
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
22 #define SYSTEM_MALLOC 1
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
23 /^#define REL_ALLOC *1 *$/s|^.*$|/* #undef REL_ALLOC */|
9fca92753ff2 New file.
Eli Zaretskii <eliz@gnu.org>
parents:
diff changeset
24
100621
c8e80afb3a47 Add arch tagline
Miles Bader <miles@gnu.org>
parents: 100556
diff changeset
25 # arch-tag: 20b3ad5d-fcd7-4751-aa34-e94e770ded87