1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-25 07:28:20 +00:00
Commit Graph

471 Commits

Author SHA1 Message Date
Juanma Barranquero
33462dfacd Add "add-log-time-zone-rule: t" to Local Variables section. 2006-11-10 00:21:57 +00:00
Chong Yidong
41c98a5ec0 * Makefile.in (lwlib-utils.o): Use CPPFLAGS. 2006-10-30 23:12:40 +00:00
Karoly Lorentey
12b6af5c7e Merged from emacs@sv.gnu.org
Patches applied:

 * emacs@sv.gnu.org/emacs--devo--0--patch-413
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-414
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-415
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-416
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-417
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-418
   Merge from gnus--rel--5.10

 * emacs@sv.gnu.org/emacs--devo--0--patch-419
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-420
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-421
   Merge from gnus--rel--5.10

 * emacs@sv.gnu.org/emacs--devo--0--patch-422
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-423
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-424
   Merge from gnus--rel--5.10

 * emacs@sv.gnu.org/emacs--devo--0--patch-425
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-426
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-427
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-428
   Merge from gnus--rel--5.10

 * emacs@sv.gnu.org/emacs--devo--0--patch-429
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-430
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-431
   Merge from gnus--rel--5.10

 * emacs@sv.gnu.org/emacs--devo--0--patch-432
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-433
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-434
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-435
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-436
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-437
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-438
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-439
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-440
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-441
   lisp/url/url-methods.el: Fix format error when http_proxy is empty string

 * emacs@sv.gnu.org/emacs--devo--0--patch-442
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-443
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-444
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-445
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-446
   Merge from gnus--rel--5.10

 * emacs@sv.gnu.org/emacs--devo--0--patch-447
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-448
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-449
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-450
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-451
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-452
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-453
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-454
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-455
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-456
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-457
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-458
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-459
   Merge from gnus--rel--5.10

 * emacs@sv.gnu.org/emacs--devo--0--patch-460
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-461
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-462
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-463
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-464
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-465
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-466
   Merge from gnus--rel--5.10

 * emacs@sv.gnu.org/emacs--devo--0--patch-467
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-468
   Merge from gnus--rel--5.10

 * emacs@sv.gnu.org/emacs--devo--0--patch-469
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-470
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-471
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-472
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-473
   Update from CVS

 * emacs@sv.gnu.org/gnus--rel--5.10--patch-128
   Update from CVS

 * emacs@sv.gnu.org/gnus--rel--5.10--patch-129
   Merge from emacs--devo--0

 * emacs@sv.gnu.org/gnus--rel--5.10--patch-130
   Update from CVS

 * emacs@sv.gnu.org/gnus--rel--5.10--patch-131
   Update from CVS

 * emacs@sv.gnu.org/gnus--rel--5.10--patch-132
   Update from CVS

 * emacs@sv.gnu.org/gnus--rel--5.10--patch-133
   Update from CVS

 * emacs@sv.gnu.org/gnus--rel--5.10--patch-134
   Merge from emacs--devo--0

 * emacs@sv.gnu.org/gnus--rel--5.10--patch-135
   Update from CVS

 * emacs@sv.gnu.org/gnus--rel--5.10--patch-136
   Update from CVS

 * emacs@sv.gnu.org/gnus--rel--5.10--patch-137
   Update from CVS

 * emacs@sv.gnu.org/gnus--rel--5.10--patch-138
   Update from CVS

 * emacs@sv.gnu.org/gnus--rel--5.10--patch-139
   Update from CVS

 * emacs@sv.gnu.org/gnus--rel--5.10--patch-140
   Update from CVS

 * emacs@sv.gnu.org/gnus--rel--5.10--patch-141
   Merge from emacs--devo--0

 * emacs@sv.gnu.org/gnus--rel--5.10--patch-142
   Update from CVS

 * emacs@sv.gnu.org/gnus--rel--5.10--patch-143
   Update from CVS

 * emacs@sv.gnu.org/gnus--rel--5.10--patch-144
   Update from CVS

 * emacs@sv.gnu.org/gnus--rel--5.10--patch-145
   Merge from emacs--devo--0

 * emacs@sv.gnu.org/gnus--rel--5.10--patch-146
   Update from CVS

 * emacs@sv.gnu.org/gnus--rel--5.10--patch-147
   Update from CVS

 * emacs@sv.gnu.org/gnus--rel--5.10--patch-148
   Update from CVS

 * emacs@sv.gnu.org/gnus--rel--5.10--patch-149
   Update from CVS


git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-582
2006-10-14 17:36:28 +00:00
Jay Belanger
45a2056c56 *** empty log message *** 2006-09-15 17:47:12 +00:00
Jay Belanger
f7e4411110 Replace "Library Public License" by "Lesser Public License" throughout. 2006-09-15 17:19:05 +00:00
Karoly Lorentey
16b555334a Fix compilation error in lwlib/xlwmenu.c.
* lwlib/xlwmenu.c (XlwMenuRealize): Fix x_catch_errors and
  x_uncatch_errors invocation.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-568
2006-05-24 12:14:26 +00:00
Karoly Lorentey
40a1b46245 Merged from emacs@sv.gnu.org
Patches applied:

 * emacs@sv.gnu.org/emacs--devo--0--patch-289
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-290
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-291
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-292
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-293
   Update from CVS

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-567
2006-05-24 09:13:31 +00:00
Jan Djärv
1f5df1f783 * xlwmenu.c: Include xterm.h if emacs instead of declaring functions
used.
 (string_width): Declare as static.
 (Start, pop_up_menu): Set is_hint to 0 before calling
 handle_motion_event.
 (pop_up_menu): Return value and parameters for x_catch_errors and
 x_uncatch_errors changed.
2006-05-23 07:19:45 +00:00
Karoly Lorentey
a5805c9d02 Merged from emacs@sv.gnu.org
Patches applied:

 * emacs@sv.gnu.org/emacs--devo--0--patch-41
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-42
   Merge from gnus--rel--5.10

 * emacs@sv.gnu.org/emacs--devo--0--patch-43
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-44
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-45
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-46
   Merge from erc--emacs--0

 * emacs@sv.gnu.org/emacs--devo--0--patch-47
   Update from CVS

 * emacs@sv.gnu.org/emacs--devo--0--patch-48
   Update from CVS

 * emacs@sv.gnu.org/gnus--rel--5.10--patch-14
   Update from CVS

 * emacs@sv.gnu.org/gnus--rel--5.10--patch-15
   Update from CVS

 * emacs@sv.gnu.org/gnus--rel--5.10--patch-16
   Update from CVS

 * emacs@sv.gnu.org/gnus--rel--5.10--patch-17
   Merge from emacs--devo--0

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-507
2006-02-06 18:44:57 +00:00
Thien-Thi Nguyen
5b0d63bc36 Update years in copyright notice; nfc. 2006-02-05 23:44:47 +00:00
Karoly Lorentey
2dfa0facd9 Install workaround for "X protocol error: BadCursor (invalid Cursor parameter) on protocol request 2"
* lwlib/xlwmenu.c (XlwMenuRealize): Ignore X errors while setting up
  cursor shape.

git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-483
2006-01-02 07:43:46 +00:00
Dan Nicolaescu
43f15d4afe * xlwmenu.c (find_next_selectable):
(find_prev_selectable): Add missing parameter
declarations.

* xfaces.c (lookup_derived_face): Add parameter type.

* xdisp.c (cursor_row_fully_visible_p): Add parameter type.

* marker.c (verify_bytepos): Add parameter type.

* process.c (get_operating_system_release): Move prototype ...

* systime.h (get_operating_system_release): ... here.

* xterm.c (set_vertical_scroll_bar): Move prototype ...

* xterm.h: ... here.

* fns.c (internal_equal, seed_random): Fix prototypes.
(internal_equal): Add missing parameter.
2005-09-27 18:48:59 +00:00
Dan Nicolaescu
c5caf98146 Fix the return type for x_clear_errors and
x_uncatch_errors.
2005-09-24 20:37:14 +00:00
Thien-Thi Nguyen
92b47a4a99 Update years in copyright notice; nfc. 2005-08-07 10:56:27 +00:00
Jan Djärv
7537ab9c84 * lwlib-Xm.c (make_menu_in_widget): Disable drag and drop for
labels in menu bar.
2005-07-19 09:06:47 +00:00
Lute Kamstra
a0ec7a4a17 *** empty log message *** 2005-07-05 12:22:32 +00:00
Lute Kamstra
364c38d3af Update FSF's address. 2005-07-04 15:47:28 +00:00
Lute Kamstra
83c4f946f7 Update FSF's address. 2005-07-02 15:46:32 +00:00
Stefan Monnier
ba833b25a7 Update copyright. 2005-04-10 20:31:02 +00:00
Jan Djärv
52a9f3a0d6 Reenable support for I18N to Lucid menus.
* xlwmenuP.h (_XlwMenu_part): Add fontSet resource.

 * xlwmenu.c (string_width):
 (MENU_FONT_HEIGHT, MENU_FONT_ASCENT): Ditto.
 (display_menu_item, make_drawing_gcs, XlwMenuInitialize)
 (XlwMenuSetValues):  Use font if fontSet is NULL, use only
 font for !HAVE_X_I18N.
 (xlwMenuResources): Add fontSet resource.
2005-04-01 18:42:56 +00:00
Jan Djärv
3748454050 * xlwmenuP.h (_XlwMenu_part): Add fontSet resource. 2005-04-01 18:42:33 +00:00
Jan Djärv
2015c054d9 * xlwmenu.c (string_width):
(MENU_FONT_HEIGHT, MENU_FONT_ASCENT): Ditto.
(display_menu_item, make_drawing_gcs, XlwMenuInitialize)
(XlwMenuSetValues):  Use font if fontSet is NULL, use only
font for !HAVE_X_I18N.
(xlwMenuResources): Add fontSet resource.
2005-04-01 18:42:19 +00:00
Jan Djärv
e9c19b6818 Temporary #undef HAVE_X_I18N until FontSet for UTF-8
on XFree86 is investigated.
2005-03-22 21:41:27 +00:00
Jan Djärv
937a855ded * xlwmenuP.h: Temporary #undef HAVE_X_I18N until FontSet for UTF-8
on XFree86 is investigated.
* xlwmenu.c: Ditto.
2005-03-22 21:40:27 +00:00
Stefan Monnier
15df8e8921 (MENU_FONT_ASCENT) [HAVE_X_I18N]: Try to be more correct. 2005-03-18 05:19:59 +00:00
Stefan Monnier
423a3f5901 Add support for I18N to Lucid menus.
* xlwmenuP.h (struct _XlwMenu_part) [HAVE_X_I18N]: Change `font' to be
a fontset.  Add a `font_extents' element.

* xlwmenu.c (xlwMenuResources) [HAVE_X_I18N]: Use a fontset for the
`font' resource.
(string_width) [HAVE_X_I18N]: Use XmbTextExtents;
(MENU_FONT_HEIGHT, MENU_FONT_ASCENT): New macros.
(arrow_width, toggle_button_width, size_menu_item, draw_arrow)
(draw_toggle, draw_radio, display_menu_item): Use them.
(display_menu_item) [HAVE_X_I18N]: Use XmbDrawString.
(make_drawing_gcs) [HAVE_X_I18N]: Don't mess with fonts.
(XlwMenuInitialize) [HAVE_X_I18N]: Initialize font_extents.
(XlwMenuSetValues) [HAVE_X_I18N]: Refresh font_extents if font changes.
2005-03-18 04:19:41 +00:00
Stefan Monnier
3c916d6555 (xm_update_label, xm_update_list): Use the recommended
XmStringCreateLocalized function.  Add missing copyright.
2005-03-17 19:03:16 +00:00
Stefan Monnier
9f9e527507 *** empty log message *** 2005-03-17 17:17:57 +00:00
Stefan Monnier
21a03b6823 Add missing copyright and license notice. 2005-03-17 17:16:33 +00:00
Stefan Monnier
f7b758bd80 *** empty log message *** 2005-03-12 23:39:37 +00:00
Stefan Monnier
44862e8e26 Add missing copyright and license notice. 2005-03-12 23:38:43 +00:00
Jan Djärv
4220b2a5ce * xlwmenu.c (xlwMenuActionsList): Install MenuGadgetEscape as an
action procedure for compatibility with Lesstif/Motif.

* Makefile.in (mostlyclean): Don't remove *~ on clean.
2004-12-27 15:22:36 +00:00
Jan Djärv
4e6e2184d8 * lwlib-Xaw.c: Put <KeyPress>Escape in dialogOverride so dialogs only
pops down on Escape, not any keypress.
2004-12-26 16:02:26 +00:00
Jan Djärv
03a693b48a * xlwmenu.c (find_first_selectable, find_next_selectable)
(find_prev_selectable): Rename parameter skip_no_call_data to
skip_titles.  Recognize titles as having no call_data and no contents.
(Down, Up): Comment update.
2004-11-01 12:20:45 +00:00
Jan Djärv
05bdae441b * lwlib.h (_widget_value): Added lname and lkey. 2004-08-30 19:42:20 +00:00
Miles Bader
48d67035ea Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-396
Tweak arch tagging to make build/install-in-place less annoying

Previously, autoconf-created Makefiles and the like would contain
duplicate taglines (unfortunately, autoconf doesn't seem to have a
`strip in generated file' comment mechanism) leading to conflicts, and
installing in place would create unknown directories and copies of
source directories (leading to conflicts with the source directories).

This changeset makes all autoconf-processed files use explicit id-tags
and adds .arch-inventory entries to ignore installation directories.
2004-06-11 02:39:51 +00:00
Jan Djärv
244c93fe57 Changes for lucid popup menus (keyboard traversal enabled) and dialogs
(Xaw and Xm pop down on ESC).
2004-01-12 01:45:22 +00:00
Lute Kamstra
19bb0fcdf1 Update my email address. 2003-10-06 08:32:09 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Dave Love
404074e226 Include lisp.h, not ../src/lisp.h.
(make_drawing_gcs): Remove unused `xswa', `mask'.
2003-05-22 13:38:44 +00:00
Dave Love
e226063c2f Include lisp.h, not ../src/lisp.h.
(lw_lucid_widget_p): Remove unused `mw'.
(xlw_update_one_widget, xlw_pop_instance) [PROTOTYPES]: Provide
ISO C arglists.
2003-05-22 13:30:20 +00:00
Juanma Barranquero
d7acd77436 *** empty log message *** 2003-04-30 00:13:34 +00:00
Juanma Barranquero
93a16fa8a8 Make things function properly in case both LessTif and Open Motif are installed. 2003-04-30 00:02:23 +00:00
Juanma Barranquero
177c0ea743 Trailing whitespace deleted. 2003-02-04 14:56:31 +00:00
Jan Djärv
fb7df251b9 Update email and real name 2003-01-30 17:21:51 +00:00
Jan Djärv
d0bdb0602c lwlib-Xm.c: Fixed memory leak for menus. 2003-01-26 13:06:48 +00:00
Richard M. Stallman
0b17a21779 *** empty log message *** 2002-12-22 22:06:38 +00:00
Richard M. Stallman
fa74535d44 (pop_new_stack_if_no_contents): Do nothing if new_depth is 1.
(remap_menubar): Don't look in new_stack[0].
(Left): At level 1, do the same thing Right does.
2002-12-22 22:00:44 +00:00
Dave Love
207c13a78f Provide ISO C arglists for functions
with Boolean args.
2002-11-21 10:58:13 +00:00
Dave Love
db0e17de66 Remove obsolete USE_OLIT code.
[PROTOTYPES]: Provide ISO C arglists for functions with Boolean
args.
(lwlib_memset): Declare length arg as size_t.
(malloc_widget_value): Cast arg of lwlib_memset.
2002-11-20 19:26:18 +00:00
Dave Love
8fdc938415 (separator_height): Prototype. 2002-11-20 19:19:14 +00:00
Pavel Janík
ef93458b2f (make_drawing_gcs): The scaling factor passed to
`x_alloc_lighter_color_for_widget' is a float, not an int, and it's
a multiplicative factor, so the name `delta' is inaccurate.  Always base
disabled foreground on the normal foreground.  Don't use the temporary
variable `temp'.
2002-05-07 05:22:48 +00:00
Pavel Janík
8b71a9ca6f (xlwMenuResources): New resource.
(find_next_selectable): Return current item when the menu is not poped up.
Rename `inactive_gc' to `disabled_gc'.
Use lighter/darker color for disabled menu items instead of using stipple.
Use stipple only when better color can not be determined automatically.
2002-05-06 18:56:25 +00:00
Pavel Janík
2ad9976665 (XtNdisabledForeground, XtCDisabledForeground): New resource names. 2002-05-06 18:54:56 +00:00
Pavel Janík
ba75570203 (_XlwMenu_part): Add new member `disabled_foreground'.
Rename `inactive_gc' to `disabled_gc'.
2002-05-06 18:54:28 +00:00
Stefan Monnier
bcd833b2a2 *** empty log message *** 2002-04-30 19:21:33 +00:00
Pavel Janík
e656fc9d38 *** empty log message *** 2002-04-29 09:27:57 +00:00
Pavel Janík
2376c841ac Change default values. 2002-04-29 09:10:28 +00:00
Jan Djärv
005e0d57fc Do not grab keyboard if installation-directory is
non-nil (not installed Emacs).  To simplify debugging.
2002-04-28 19:54:30 +00:00
Pavel Janík
2bad4ee209 Remove unused file. 2002-04-28 13:38:13 +00:00
Pavel Janík
9d5ebed11b Remove OpenLook file dependencies.
(xrdb-cpp.o): Remove target.
Remove unused defines.
2002-04-28 13:35:36 +00:00
Pavel Janík
38e668dfb2 (instantiate_widget_instance): Remove duplicated prototype. 2002-04-28 13:19:45 +00:00
Pavel Janík
90077f6669 *** empty log message *** 2002-04-25 05:49:26 +00:00
Pavel Janík
557c29061e Remove file. 2002-04-25 05:44:56 +00:00
Jan Djärv
6be3e0da26 *** empty log message *** 2002-04-22 18:27:39 +00:00
Jan Djärv
9b7e90fd17 Remove compiler warning 2002-04-22 18:25:55 +00:00
Jan Djärv
4db7db7d55 Add calls to Grab/UngrabKeyboard to remove strange interactions with
window managers that steal keypresses.
2002-04-22 18:21:06 +00:00
Pavel Janík
7769818bc9 *** empty log message *** 2002-04-20 13:41:07 +00:00
Pavel Janík
1b8d91abb3 (find_next_selectable): New function.
(Down, Up, Right): Use it.
(find_next_selectable): Prevent endless loops when only one item is enabled
in the menu.
2002-04-20 13:39:57 +00:00
Pavel Janík
6ad6535ba3 *** empty log message *** 2002-04-19 19:04:25 +00:00
Pavel Janík
a7e19a2674 (xlwMenuTranslations, xlwMenuActionsList): Add translations for cursor keys
and RET.
(find_next_selectable, find_prev_selectable): New functions used for
finding menu-items.
(Down, Up, Left, Right): New functions.
2002-04-19 18:56:51 +00:00
Pavel Janík
e7c9e4455f Fix typo and whitespaces. 2002-04-19 11:39:17 +00:00
Eli Zaretskii
5e3238f491 *** empty log message *** 2002-04-19 10:35:52 +00:00
Eli Zaretskii
9040fe8b81 (TAGS): Don't use -t, it's the default for
etags, so it barfs if invoked with -t.
2002-04-19 10:35:02 +00:00
Richard M. Stallman
6147334f2b *** empty log message *** 2002-03-18 04:44:05 +00:00
Richard M. Stallman
df5c36cd5c (P_): Definitions deleted. 2002-03-18 04:33:33 +00:00
Eli Zaretskii
663671d5a8 (P_): Don't define if already defined. 2002-03-16 09:39:48 +00:00
Pavel Janík
7a4b11ca02 *** empty log message *** 2002-01-27 18:25:50 +00:00
Pavel Janík
abf0cb2192 (xaw_update_scrollbar, xaw_scrollbar_scroll)
(xaw_scrollbar_jump): Put whole functions in #if 0.
2002-01-27 18:18:38 +00:00
Pavel Janík
ca79970e2a (xaw_create_dialog): Initialize icon_name to suppress compiler warnings. 2002-01-09 11:01:58 +00:00
Pavel Janík
4521d1fccf *** empty log message *** 2001-12-18 06:27:15 +00:00
Pavel Janík
4a5301d871 (separator_names): Add missing braces around initializers. 2001-12-18 06:23:17 +00:00
Pavel Janík
03f9f7aeb5 *** empty log message *** 2001-12-08 21:06:01 +00:00
Pavel Janík
6aec6ea8e7 New file. 2001-12-08 20:59:54 +00:00
Richard M. Stallman
656f46bbb4 *** empty log message *** 2001-12-02 05:10:41 +00:00
Richard M. Stallman
2f96293d69 Include ../src/lisp.h. 2001-12-02 05:00:27 +00:00
Richard M. Stallman
0591102a32 (_widget_value): `help' has type Lisp_Object. 2001-12-02 04:55:06 +00:00
Richard M. Stallman
a3bf8a8cfa Include ../src/lisp.h. Don't declare xmalloc.
(free_widget_value_tree): Don't free `help' field.
(copy_widget_value_tree): Copy `help' simply, without safe_strdup.
(merge_widget_value): Compare and copy `help' simply.
2001-12-02 04:52:12 +00:00
Richard M. Stallman
66458f3247 *** empty log message *** 2001-11-29 00:53:52 +00:00
Richard M. Stallman
fe2014cd30 (TAGS): Find the source files in $(srcdir). 2001-11-29 00:45:10 +00:00
Gerd Moellmann
6aa97356aa *** empty log message *** 2001-10-21 17:41:43 +00:00
Gerd Moellmann
71431a0ea1 *** empty log message *** 2001-10-21 09:04:46 +00:00
Gerd Moellmann
ab952a4f34 *** empty log message *** 2001-10-10 09:43:20 +00:00
Gerd Moellmann
14a3dff75b *** empty log message *** 2001-10-09 10:18:43 +00:00
Gerd Moellmann
21dd28d479 (xaw_create_scrollbar) [!0]: Return NULL.
From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
2001-10-09 10:13:44 +00:00
Gerd Moellmann
2a34a036ff *** empty log message *** 2001-10-06 09:57:20 +00:00
Gerd Moellmann
3e057f36a0 Remove log entries for 20.5 .. 20.7. 2001-05-09 09:50:49 +00:00
Gerd Moellmann
a9793e4573 *** empty log message *** 2001-04-30 15:25:53 +00:00
Gerd Moellmann
2a692ba46f (xlwmenu_window_p): New function. 2001-04-30 14:34:54 +00:00
Gerd Moellmann
6c29b43cdc *** empty log message *** 2001-03-23 11:14:13 +00:00
Gerd Moellmann
d3a785fff5 (x_print_complete_resource_name) [0]: New function. 2001-03-23 11:12:25 +00:00
Gerd Moellmann
3c9e997b3c *** empty log message *** 2001-03-22 19:52:23 +00:00
Gerd Moellmann
388d6c3389 (x_print_complete_resource_name) [0]: New function. 2001-03-22 19:11:33 +00:00
Gerd Moellmann
19b2bb80a3 *** empty log message *** 2001-03-13 16:51:32 +00:00
Gerd Moellmann
667f102ab2 (make_menu_in_widget): Remove code forcing LessTif to
recompute centered text; it works fine without with current LessTif.
2001-03-13 16:51:13 +00:00
Gerd Moellmann
f25d58a47c (make_menu_in_widget): Add an XmNpopdownCallback
instead of an XmNunmapCallback.
(xm_unmap_callback): Removed.
2001-03-13 16:30:15 +00:00
Gerd Moellmann
9faaaa523c *** empty log message *** 2001-03-13 13:16:37 +00:00
Gerd Moellmann
5625f709a4 (make_menubar): Take out code in #if 0. 2001-03-13 12:38:50 +00:00
Gerd Moellmann
3d57dbba1d (xm_popup_menu): Don't set XmNmenuPost unless
necessary.  From Rick Scott <rwscott@alumni.uwaterloo.ca>.
2001-03-13 12:31:55 +00:00
Gerd Moellmann
11ef99b90c *** empty log message *** 2001-02-28 15:06:38 +00:00
Gerd Moellmann
81e3f05877 (xm_arm_callback): Don't compare widgets with `None',
use NULL instead.
2001-02-28 15:03:11 +00:00
Gerd Moellmann
2a73ab6066 (xaw_update_one_widget): Use XtSetSensitive instead
of setting the value of XtNsensitive.
2001-02-28 14:55:33 +00:00
Gerd Moellmann
2f87cc746e (xm_update_radiobox, update_one_menu_entry)
(xm_update_one_widget): Use XtSetSensitive instead of setting the
value of XmNsensitive.  From Rick Scott
<rwscott@alumni.uwaterloo.ca>.
2001-02-28 14:54:54 +00:00
Dave Love
ec9077f26c *** empty log message *** 2000-12-14 14:17:49 +00:00
Dave Love
5916243b18 (gray_bitmap_bits): Remove `unsigned' from
declaration.
2000-12-14 14:11:03 +00:00
Dave Love
2f90328f39 (draw_separator) <SEPARATOR_SHADOW_ETCHED_IN_DASH>:
<SEPARATOR_SHADOW_ETCHED_OUT_DASH>: Fix call of draw_separator.
2000-12-11 14:33:47 +00:00
Gerd Moellmann
ae0d748578 *** empty log message *** 2000-12-07 13:27:34 +00:00
Gerd Moellmann
27e3b1a140 (xm_arm_callback): Fix last change. 2000-12-07 12:33:32 +00:00
Gerd Moellmann
edfb795efa *** empty log message *** 2000-11-30 13:47:34 +00:00
Gerd Moellmann
924e171446 (xm_arm_callback): Handle case that W is null;
also see comment there.
2000-11-30 12:50:08 +00:00
Gerd Moellmann
cd913aae53 *** empty log message *** 2000-11-21 22:27:22 +00:00
Gerd Moellmann
f3c9e54407 (xlwmenu_redisplay): New function. 2000-11-21 22:27:08 +00:00
Stefan Monnier
0f3360b0ec (lw_separator_p): Init separator_p (bug with "-- some text"). 2000-09-30 17:03:27 +00:00
Sam Steingold
5c520e0aba * xlwmenu.c: Before including <X11/Xos.h> on SUN, define SUNOS41
to avoid redefining struct timeval and struct timezone.
2000-09-28 20:30:52 +00:00
Gerd Moellmann
6567e9b550 *** empty log message *** 2000-09-25 15:42:25 +00:00
Gerd Moellmann
1b24b88816 *** empty log message *** 2000-09-21 15:08:55 +00:00
Miles Bader
b7fa4a0675 (remap_menubar):
Only include the menu-margin in the initial X & Y positions for
  horizontal menu-bars.
(fit_to_screen):
  If moving a sub-menu to the left-side, increment its x-position by the
  shadow-thickness to make it look more attached to the invoking
  menu-item (similarly to the way it would be displayed on the right side).
2000-09-04 13:04:49 +00:00
Miles Bader
43aa2f1bef (XlwMenuSetValues): Pass the correct pointer type to XtIsRealized. 2000-09-04 12:13:34 +00:00
Miles Bader
7a3d0e0ee0 *** empty log message *** 2000-09-04 11:57:57 +00:00
Miles Bader
da353f232d (XlwMenuSetValues): Only frob the display if the menu is actually displayed. 2000-09-04 11:55:02 +00:00
Miles Bader
a3d35a3982 *** empty log message *** 2000-09-03 11:40:32 +00:00
Miles Bader
65c0ae0523 (x_alloc_lighter_color_for_widget):
New extern declaration.
(make_shadow_gcs) [emacs]:
  Use x_alloc_lighter_color_for_widget to do shadow calculation.
(make_shadow_gcs):
  Remove code that tests whether the top shadow is dimmer than the bottom
    shadow--it shouldn't ever happen.
2000-09-03 11:37:45 +00:00
Miles Bader
caccd8f284 *** empty log message *** 2000-08-30 12:11:04 +00:00
Miles Bader
90c7e9f079 (XlwMenuSetValues):
If the background color has changed, re-make the shadow-gcs too.
2000-08-30 11:52:37 +00:00
Kenichi Handa
6922b01802 *** empty log message *** 2000-08-21 01:39:25 +00:00
Gerd Moellmann
f4988be716 *** empty log message *** 2000-08-03 20:24:26 +00:00
Gerd Moellmann
8dd095ee45 Use NULL at the end of the
variable argument lists of XtVaSetValues and XtVaGetValues
functions because 0 is not sufficient on systems where sizeof
(int) < sizeof (void *).
2000-08-03 20:09:56 +00:00
Gerd Moellmann
47db06aae4 *** empty log message *** 2000-07-19 15:52:13 +00:00
Gerd Moellmann
f1c16db4be Don't include <X11/bitmaps/gray> because that
leads to redefinition errors when static is defined as empty in
config.h.  Refer to the gray bitmap in xfns.c, instead.
2000-07-19 15:49:28 +00:00
Dave Love
cdefcd82ca (XtApplyToWidgets): Cast args of lwlib_bcopy. 2000-07-18 12:41:55 +00:00
Dave Love
af5e64bc8e (xlw_popup_menu): Cast arg of pop_up_menu. 2000-06-23 13:59:33 +00:00
Dave Love
123c6301b3 Include lwlib.h. 2000-06-23 13:57:34 +00:00
Gerd Moellmann
0a2ea2356d *** empty log message *** 2000-06-16 18:54:24 +00:00
Gerd Moellmann
bba2a92393 (make_shadow_gcs): Set free_top_shadow_color_p
and free_top_shadow_color_p flags in the menu widget if
top and bottom shadow colors must be freed.
(release_shadow_gcs): Free colors only if they must be freed.
2000-06-16 18:34:17 +00:00
Gerd Moellmann
457d47f892 (_XlwMenu_part): Add free_top_shadow_color_p and
free_bottom_shadow_color_p.
2000-06-16 18:33:58 +00:00
Gerd Moellmann
ed1056b307 *** empty log message *** 2000-06-12 19:12:17 +00:00
Gerd Moellmann
fc8fefedf3 (make_shadow_gcs): Free and copy colors so that
color reference counts are right.
(release_shadow_gcs): Free colors.
2000-06-12 19:12:11 +00:00
Dave Love
bb2337f5ad *** empty log message *** 2000-06-06 14:56:30 +00:00
Dave Love
a57a160552 (x_alloc_nearest_color_for_widget, x_catch_errors, x_uncatch_errors)
(x_had_errors_p, x_clear_errors): Add prototypes -- should be moved
into separate header.
(make_shadow_gcs) <x_alloc_nearest_color_for_widget>: Cast first arg.
(Start) <pop_up_menu>: Cast second arg.
2000-06-06 14:21:15 +00:00
Dave Love
fdc4d3cdb9 (P_): Use PROTOTYPES.
(safe_strdup): Declare arg const.
(lw_modify_all_widgets) <!info>: Return 0.
2000-06-06 14:15:49 +00:00
Dave Love
200ca4d576 (P_): Use PROTOTYPES. 2000-06-06 14:13:17 +00:00
Dave Love
99570665ff Enable prototypes. 2000-06-06 14:12:10 +00:00
Dave Love
4374c6b0cb (xaw_popup_menu): Add EVENT arg. 2000-06-06 14:07:57 +00:00
Dave Love
371b6f31d3 (lwlib.o): Depend on lwlib-Xlw.h.
(lwlib-Xlw.o): Depend on lwlib-Xlw.h.
(lwlib-Xaw.o): Depend on lwlib-Xaw.h.
(lwlib-Xm.o): Depend on lwlib-Xm.h.
2000-06-06 14:05:40 +00:00
Gerd Moellmann
9b2f3c3830 *** empty log message *** 2000-03-12 17:01:50 +00:00
Gerd Moellmann
d21cf544f7 (make_menubar) [LESSTIF_VERSION]: Don't set
XmNresizeHeight and XmNresizeWidth.
2000-03-12 16:22:19 +00:00
Dave Love
7397acc494 (liblw.a): Don't bother testing for ranlib failing
since configure sets it up.
2000-03-08 19:10:01 +00:00
Gerd Moellmann
1d4d17e24a (make_menubar): Set XmNresizeHeight and
XmNresizeWidth resources only if LESSTIF_VERSION is defined.
2000-03-06 22:50:15 +00:00
Gerd Moellmann
566f7ec858 (xm_manage_resizing): Rewritten. 2000-03-05 14:32:02 +00:00
Gerd Moellmann
a17063b5b4 (lw_modify_all_widgets): Return non-zero if widget
tree was changed.
(merge_widget_value): Add parameter CHANGE_P.  Set *CHANGE_P
to 1 if a change occurs.
2000-03-05 14:31:04 +00:00
Gerd Moellmann
23b4d91d7c (lw_modify_all_widgets): Change prototype. 2000-03-05 14:30:37 +00:00
Gerd Moellmann
64d739c445 *** empty log message *** 2000-03-04 16:04:15 +00:00
Gerd Moellmann
b0404f9ffc (make_shadow_gcs): Use the widget's colormap instead
of the screen's default colormap.
2000-03-04 16:04:00 +00:00
Gerd Moellmann
b6a22bf83e *** empty log message *** 2000-02-18 11:35:29 +00:00
Gerd Moellmann
2114e13f51 (merge_widget_value): Fix incorrect assignment of
safe_strdup'd help string.
2000-02-18 11:35:16 +00:00
Gerd Moellmann
e12489f9ab *** empty log message *** 2000-01-25 15:59:42 +00:00
Gerd Moellmann
640438b056 (make_menu_in_widget): Don't add XmNpopdownCallback,
add XmNunmapCallback.
(xm_unmap_callback): New function.
(xm_pull_down_callback): Call pre-activate callback only if
parent is the menu bar.
2000-01-25 15:50:53 +00:00
Gerd Moellmann
32660797d3 *** empty log message *** 2000-01-17 12:45:41 +00:00
Gerd Moellmann
d36100c99b *** empty log message *** 2000-01-17 09:50:58 +00:00
Gerd Moellmann
1f0cf6ee91 (make_menubar): Set XmNresizeHeight and XmNresizeWidth to False. 2000-01-17 09:29:10 +00:00
Gerd Moellmann
52b8dbf903 *** empty log message *** 2000-01-17 09:16:13 +00:00
Gerd Moellmann
ad45c495f6 (_XlwMenu_part): Add `highlight' callback list. 2000-01-17 09:11:23 +00:00
Gerd Moellmann
0d8f73783c (XtNhighlightCallback): New define. 2000-01-17 09:11:11 +00:00
Gerd Moellmann
d6fd637121 (xlwMenuResources): All XtNhighlightCallback.
(remap_menubar): Call highlight callback.
2000-01-17 09:10:58 +00:00
Gerd Moellmann
6431de0a0e (_widget_value): Add help string. 2000-01-17 09:10:40 +00:00
Gerd Moellmann
98f7f0d7b7 Add prototype for lw_get_widget_instance. 2000-01-17 09:10:21 +00:00
Gerd Moellmann
02512b201f (copy_widget_value_tree): Copy help string.
(free_widget_value_tree): Free help string.
(merge_widget_value): Handle help string.
(allocate_widget_info, lw_register_widget, lw_create_widget): Add
parameter HIGHLIGHT_CB.
(lw_get_widget_instance): New function.
2000-01-17 09:10:05 +00:00
Gerd Moellmann
fa616ec497 (highlight_hook): New function.
(xlw_create_menubar, xlw_create_popup_menu): Add highlight_hook as
callback XtNhighlightCallback.
2000-01-17 09:09:39 +00:00
Gerd Moellmann
d3065ce277 (xm_arm_callback): New function.
(make_menu_in_widget): Set xm_arm_callback as XmNarmCallback and
XmNdisarmCallback for buttons (not supported for other widgets).
2000-01-17 09:09:08 +00:00
Paul Eggert
0f0912e644 Add support for large files, plus some locale improvements.
* dispatch.c, lwlib-Xaw.c, lwlib-Xlw.c, lwlib-Xm.c, lwlib.c, xlwmenu.c,
xrdb-cpp.c, xrdb.c:
Include <config.h> before any system include files.

* lwlib-Xm.c, lwlib.c:
Do not include <stdlib.h> or <string.h>, as <config.h> does this.
1999-10-19 07:21:16 +00:00
Gerd Moellmann
f5737ad232 *** empty log message *** 1999-10-06 23:31:49 +00:00
Gerd Moellmann
e9ec3919bc (make_menu_in_widget, update_one_menu_entry): Use
widgets instead of gadgets to be able to set colors.
1999-10-06 23:25:07 +00:00
Dave Love
387581d8b4 # 1999-10-04 13:10:21 +00:00
Dave Love
a08cb76c5a # 1999-09-30 21:29:02 +00:00
Richard M. Stallman
8dce2ddc9d (wm_delete_window): Check all the shell's children,
not just the first, to find the dialog box.
1999-09-18 03:02:03 +00:00
Gerd Moellmann
46d74a6943 (lw_separator_p): Check for new-style separators
differently.
1999-09-14 15:30:15 +00:00
Gerd Moellmann
61e59c1dd1 (lw_separator_p): Add `--:space' with the same
meaning as `--:noLine'.
1999-09-10 16:19:33 +00:00
Gerd Moellmann
2af98732e6 (lw_separator_p): Add alternative separator type names. 1999-09-06 15:57:51 +00:00
Gerd Moellmann
dd7447ccb0 (make_shadow_gcs): Call
x_alloc_nearest_color_for_widget.
1999-09-03 18:49:53 +00:00
Gerd Moellmann
968aa0ada4 Add function prototypes.
(xm_update_label): Use val->name to look up
a label string from resources.
(all_dashes_p): Removed.
(make_menu_in_widget): Use lw_separator_p.  Set Motif separator
type.
(make_menu_in_widget): Set alignment of menu
title after all widgets have been created.
(xm_update_toggle): Add callback xm_generic_callback
instead of xm_internal_update_other_instances.
(make_menu_in_widget): Do help button before managing
children to get it to the right place.
(make_menu_in_widget): Create toggle buttons.
(update_one_menu_entry): Update toggle buttons.
(make_menu_in_widget): Test for menubar widgets
using XmNrowColumnType.
1999-07-21 21:43:52 +00:00
Gerd Moellmann
da88f59218 (lw_separator_p): New.
(merge_widget_value): Handle button_type.
(copy_widget_value_tree): Copy button_type.
1999-07-21 21:43:52 +00:00
Gerd Moellmann
cedccd2efa (enum menu_separator): New.
(enum button_type): New.
(_widget_value): New member button_type.
1999-07-21 21:43:52 +00:00
Gerd Moellmann
be06a3dffa (make_shadow_gcs) ]emacs]: Use x_alloc_nearest_color.
(all_dashes_p): Removed.
(size_menu_item): Call lw_separator_p.
(display_menu_item): Ditto.
(display_menu): Ditto.
(draw_separator): New.
(display_menu_item): Call it.
(separator_height): New.
(size_menu_item): Call it.
(abort_gracefully): New.
(display_menu): Use it instead of abort.
(size_menu): Ditto.
(xlwMenuResources): Change previously unused
XtNmargin to 4.
(size_menu): Take margin into account.
(display_menu_item): Ditto.
(remap_menubar): Ditto.
(draw_arrow): Draw it 3D.
(radio_button_width): New.
(size_menu_item): Use new functions.
(draw_shadow_rhombus): New.
(draw_radio): Use radio_button_width and draw_shadow_rhombus.
(draw_toggle): Use toggle_button_width.
(size_menu_item): Add parameter button_width.
(size_menu): Compute button_width.
(toggle_button_width): New.
(draw_toggle): New.
(draw_radio): New.
(draw_shadow_rectangle): Add parameter `down_p'.
1999-07-21 21:43:52 +00:00
Gerd Moellmann
7c2eb6d1fd (_window_state): Add button_width. 1999-07-21 21:43:52 +00:00
Richard M. Stallman
8a23f4d8a6 (lwlib-utils.o, lwlib.o, lwlib-Xlw.o)
(lwlib-Xaw.o, lwlib-Xm.o, lwlib-Xol.o, lwlib-Xolmb.o):
Add dependencies to corresponding .c files. for Solaris 2.x VPATH make.
1998-08-02 00:29:05 +00:00
Andreas Schwab
cec17865e8 Always declare xmalloc.
[USE_XAW]: Include <X11/Xaw/Paned.h>.
(lwlib_memset, lwlib_bcopy): Explicitly declare return type.
1998-04-06 10:23:30 +00:00
Richard M. Stallman
bafa64ca78 (update_one_menu_entry): Add conditional in case XmNpositionIndex is missing. 1997-12-20 23:12:09 +00:00
Richard M. Stallman
4f08464cb8 (motion_event_is_in_menu): Extend the left and
top windows by the shadow width.
1997-09-20 04:48:29 +00:00
Richard M. Stallman
ccc1cac016 (display_menu): If an item is disabled,
don't display its submenu (if any).
1997-07-26 01:40:05 +00:00
Richard M. Stallman
5efb61c794 (pop_up_menu): Update the call to x_catch_errors. 1997-05-02 07:27:07 +00:00