aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Djärv2004-10-19 16:40:34 +0000
committerJan Djärv2004-10-19 16:40:34 +0000
commit6bd8015d00acd19c07570d01c15d8864bd6cf6c1 (patch)
tree24d083facbc8419a1ab8a4775276f61305217634 /src
parent1755a397946dfd7a01f3417501cfa3227769eb53 (diff)
downloademacs-6bd8015d00acd19c07570d01c15d8864bd6cf6c1.tar.gz
emacs-6bd8015d00acd19c07570d01c15d8864bd6cf6c1.zip
* xterm.c (x_clear_frame): Remove call to xg_frame_cleared
(x_scroll_bar_create, XTset_vertical_scroll_bar): Remove arguments left and width to xg_update_scrollbar_pos. (XTset_vertical_scroll_bar): Do x_clear_area for USE_GTK also.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c30
1 files changed, 10 insertions, 20 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 8aa52b658c8..41b7c18e820 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -2823,10 +2823,6 @@ x_clear_frame ()
2823 2823
2824 XFlush (FRAME_X_DISPLAY (f)); 2824 XFlush (FRAME_X_DISPLAY (f));
2825 2825
2826#ifdef USE_GTK
2827 xg_frame_cleared (f);
2828#endif
2829
2830 UNBLOCK_INPUT; 2826 UNBLOCK_INPUT;
2831} 2827}
2832 2828
@@ -4861,9 +4857,7 @@ x_scroll_bar_create (w, top, left, width, height)
4861 top, 4857 top,
4862 left + VERTICAL_SCROLL_BAR_WIDTH_TRIM, 4858 left + VERTICAL_SCROLL_BAR_WIDTH_TRIM,
4863 width - VERTICAL_SCROLL_BAR_WIDTH_TRIM * 2, 4859 width - VERTICAL_SCROLL_BAR_WIDTH_TRIM * 2,
4864 max (height, 1), 4860 max (height, 1));
4865 left,
4866 width);
4867 xg_show_scroll_bar (SCROLL_BAR_X_WINDOW (bar)); 4861 xg_show_scroll_bar (SCROLL_BAR_X_WINDOW (bar));
4868#else /* not USE_GTK */ 4862#else /* not USE_GTK */
4869 Widget scroll_bar = SCROLL_BAR_X_WIDGET (FRAME_X_DISPLAY (f), bar); 4863 Widget scroll_bar = SCROLL_BAR_X_WIDGET (FRAME_X_DISPLAY (f), bar);
@@ -5107,18 +5101,6 @@ XTset_vertical_scroll_bar (w, portion, whole, position)
5107 5101
5108#ifdef USE_TOOLKIT_SCROLL_BARS 5102#ifdef USE_TOOLKIT_SCROLL_BARS
5109 5103
5110#ifdef USE_GTK
5111 if (mask)
5112 xg_update_scrollbar_pos (f,
5113 SCROLL_BAR_X_WINDOW (bar),
5114 top,
5115 sb_left + VERTICAL_SCROLL_BAR_WIDTH_TRIM,
5116 sb_width - VERTICAL_SCROLL_BAR_WIDTH_TRIM * 2,
5117 max (height, 1),
5118 left,
5119 width);
5120#else /* not USE_GTK */
5121
5122 /* Move/size the scroll bar widget. */ 5104 /* Move/size the scroll bar widget. */
5123 if (mask) 5105 if (mask)
5124 { 5106 {
@@ -5127,13 +5109,21 @@ XTset_vertical_scroll_bar (w, portion, whole, position)
5127 if (width > 0 && height > 0) 5109 if (width > 0 && height > 0)
5128 x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), 5110 x_clear_area (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
5129 left, top, width, height, False); 5111 left, top, width, height, False);
5112#ifdef USE_GTK
5113 xg_update_scrollbar_pos (f,
5114 SCROLL_BAR_X_WINDOW (bar),
5115 top,
5116 sb_left + VERTICAL_SCROLL_BAR_WIDTH_TRIM,
5117 sb_width - VERTICAL_SCROLL_BAR_WIDTH_TRIM *2,
5118 max (height, 1));
5119#else /* not USE_GTK */
5130 XtConfigureWidget (SCROLL_BAR_X_WIDGET (FRAME_X_DISPLAY (f), bar), 5120 XtConfigureWidget (SCROLL_BAR_X_WIDGET (FRAME_X_DISPLAY (f), bar),
5131 sb_left + VERTICAL_SCROLL_BAR_WIDTH_TRIM, 5121 sb_left + VERTICAL_SCROLL_BAR_WIDTH_TRIM,
5132 top, 5122 top,
5133 sb_width - VERTICAL_SCROLL_BAR_WIDTH_TRIM * 2, 5123 sb_width - VERTICAL_SCROLL_BAR_WIDTH_TRIM * 2,
5134 max (height, 1), 0); 5124 max (height, 1), 0);
5135 }
5136#endif /* not USE_GTK */ 5125#endif /* not USE_GTK */
5126 }
5137#else /* not USE_TOOLKIT_SCROLL_BARS */ 5127#else /* not USE_TOOLKIT_SCROLL_BARS */
5138 5128
5139 /* Clear areas not covered by the scroll bar because of 5129 /* Clear areas not covered by the scroll bar because of