Mercurial > hg > xemacs-beta
annotate lwlib/lwlib-Xm.h @ 4506:bd28481bb0e1
Port #'window-buffer-height, #'fit-window-to-buffer, & window, buf, functions.
lisp/ChangeLog addition:
2008-08-31 Aidan Kehoe <kehoea@parhasard.net>
* window.el (only-window-p): New.
Check if WINDOW is the only window in some context, normally its
frame.
(one-window-p):
Implemented this in terms of #'only-window-p, calling it on the
selected window.
(window-buffer-height): Uncomment this, make it work.
(count-screen-lines): Support a BUFFER argument.
(fit-window-to-buffer): Uncomment this, correct its implementation
to work with XEmacs.
* help.el (temp-buffer-resize-mode): New. Name taken from GNU,
implementation our own.
* (resize-temp-buffer-window): New. GNU-compatible alias for
#'shrink-window-if-larger-than-buffer.
* dumped-lisp.el (preloaded-file-list): Move easy-mmode before
help, now that the latter uses #'define-minor-mode.
* frame.el: Point to #'temp-buffer-resize-mode in a comment.
Some of this code is from GNU; help.el CVS version 1.327 of
2007-03-21, window.el CVS version 1.122, of 2007-06-24. Both these
are GPLV2 or later.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sun, 31 Aug 2008 12:26:46 +0200 |
parents | 98528da0b7fc |
children | ade4c7e2c6cb |
rev | line source |
---|---|
440 | 1 #ifndef INCLUDED_lwlib_Xm_h_ |
2 #define INCLUDED_lwlib_Xm_h_ | |
428 | 3 |
4 #include "lwlib-internal.h" | |
5 | |
450 | 6 extern const widget_creation_entry xm_creation_table []; |
428 | 7 |
8 Widget | |
9 xm_create_dialog (widget_instance* instance); | |
10 | |
11 Widget | |
12 xm_create_label (Widget parent, widget_value* val); | |
13 | |
14 Boolean | |
15 lw_motif_widget_p (Widget widget); | |
16 | |
17 void | |
18 xm_update_one_widget (widget_instance* instance, Widget widget, | |
19 widget_value* val, Boolean deep_p); | |
20 | |
21 void | |
22 xm_update_one_value (widget_instance* instance, Widget widget, | |
23 widget_value* val); | |
24 | |
25 void | |
26 xm_destroy_instance (widget_instance* instance); | |
27 | |
28 void | |
29 xm_set_keyboard_focus (Widget parent, Widget w); | |
30 | |
31 void | |
32 xm_popup_menu (Widget widget, XEvent *event); | |
33 | |
34 void | |
35 xm_pop_instance (widget_instance* instance, Boolean up); | |
36 | |
37 extern Widget first_child (Widget); /* garbage */ | |
38 | |
440 | 39 #endif /* INCLUDED_lwlib_Xm_h_ */ |