aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDmitry Antipov2013-09-15 11:28:38 +0400
committerDmitry Antipov2013-09-15 11:28:38 +0400
commit901049a6611e92b539e5fd2d661a9f0558a281dd (patch)
tree1747d61c0581eaadaf2bdcd4e180a098863751ab /src
parentc7cc32f7ab5a5a0b4037cb17b84b396fd079747b (diff)
downloademacs-901049a6611e92b539e5fd2d661a9f0558a281dd.tar.gz
emacs-901049a6611e92b539e5fd2d661a9f0558a281dd.zip
* xterm.h (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET) [USE_X_TOOLKIT]:
Define as such. * w32term.h (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET): Remove unused Xisms.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/w32term.h8
-rw-r--r--src/xterm.h2
3 files changed, 6 insertions, 8 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 3473ec9ab02..4040681f7ca 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -2,9 +2,13 @@
2 2
3 * xterm.h (FRAME_X_SCREEN_NUMBER): Add comment. 3 * xterm.h (FRAME_X_SCREEN_NUMBER): Add comment.
4 (BLACK_PIX_DEFAULT, WHITE_PIX_DEFAULT): Use FRAME_X_SCREEN_NUMBER. 4 (BLACK_PIX_DEFAULT, WHITE_PIX_DEFAULT): Use FRAME_X_SCREEN_NUMBER.
5 (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET) [USE_X_TOOLKIT]:
6 Define as such.
5 * frame.h (FRAME_SMALLEST_CHAR_WIDTH, FRAME_SMALLEST_FONT_HEIGHT): 7 * frame.h (FRAME_SMALLEST_CHAR_WIDTH, FRAME_SMALLEST_FONT_HEIGHT):
6 Define once here... 8 Define once here...
7 * nsterm.h, w32term.h, xterm.h: ...and not here. 9 * nsterm.h, w32term.h, xterm.h: ...and not here.
10 * w32term.h (SCROLL_BAR_X_WIDGET, SET_SCROLL_BAR_X_WIDGET):
11 Remove unused Xisms.
8 12
92013-09-14 Eli Zaretskii <eliz@gnu.org> 132013-09-14 Eli Zaretskii <eliz@gnu.org>
10 14
diff --git a/src/w32term.h b/src/w32term.h
index 9c7134ddf11..6a49753a70a 100644
--- a/src/w32term.h
+++ b/src/w32term.h
@@ -473,14 +473,6 @@ struct scroll_bar {
473#define SET_SCROLL_BAR_W32_WINDOW(ptr, id) \ 473#define SET_SCROLL_BAR_W32_WINDOW(ptr, id) \
474 (SCROLL_BAR_UNPACK ((ptr)->w32_window_low, (ptr)->w32_window_high, (intptr_t) id)) 474 (SCROLL_BAR_UNPACK ((ptr)->w32_window_low, (ptr)->w32_window_high, (intptr_t) id))
475 475
476/* Extract the X widget of the scroll bar from a struct scroll_bar. */
477#define SCROLL_BAR_X_WIDGET(ptr) \
478 ((Widget) SCROLL_BAR_PACK ((ptr)->x_widget_low, (ptr)->x_widget_high))
479
480/* Store a widget id in a struct scroll_bar. */
481#define SET_SCROLL_BAR_X_WIDGET(ptr, w) \
482 (SCROLL_BAR_UNPACK ((ptr)->x_widget_low, (ptr)->x_widget_high, (int) w))
483
484/* Return the inside width of a vertical scroll bar, given the outside 476/* Return the inside width of a vertical scroll bar, given the outside
485 width. */ 477 width. */
486#define VERTICAL_SCROLL_BAR_INSIDE_WIDTH(f,width) \ 478#define VERTICAL_SCROLL_BAR_INSIDE_WIDTH(f,width) \
diff --git a/src/xterm.h b/src/xterm.h
index 4f6b545cb45..b7efee4b6cc 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -796,6 +796,7 @@ struct scroll_bar
796/* Turning a lisp vector value into a pointer to a struct scroll_bar. */ 796/* Turning a lisp vector value into a pointer to a struct scroll_bar. */
797#define XSCROLL_BAR(vec) ((struct scroll_bar *) XVECTOR (vec)) 797#define XSCROLL_BAR(vec) ((struct scroll_bar *) XVECTOR (vec))
798 798
799#ifdef USE_X_TOOLKIT
799 800
800/* Extract the X widget of the scroll bar from a struct scroll_bar. 801/* Extract the X widget of the scroll bar from a struct scroll_bar.
801 XtWindowToWidget should be fast enough since Xt uses a hash table 802 XtWindowToWidget should be fast enough since Xt uses a hash table
@@ -812,6 +813,7 @@ struct scroll_bar
812 ptr->x_window = window; \ 813 ptr->x_window = window; \
813} while (0) 814} while (0)
814 815
816#endif /* USE_X_TOOLKIT */
815 817
816/* Return the inside width of a vertical scroll bar, given the outside 818/* Return the inside width of a vertical scroll bar, given the outside
817 width. */ 819 width. */