aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMiles Bader2001-10-05 16:36:29 +0000
committerMiles Bader2001-10-05 16:36:29 +0000
commitf15340b797108012cb1751c280ef288985751c40 (patch)
tree462c113b4cd7137c1003626c39265dd71edf72ec /src
parent7c1bef7a5bf233a4c24348300bc77eb2db6e4dcc (diff)
downloademacs-f15340b797108012cb1751c280ef288985751c40.tar.gz
emacs-f15340b797108012cb1751c280ef288985751c40.zip
(x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
Free scroll-bar shadow colors when the background color changes. (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]: Initialize scroll-bar shadow-color fields.
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 2273c6d223e..338a8781d28 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -2167,6 +2167,20 @@ x_set_scroll_bar_background (f, value, oldval)
2167 if (f->output_data.x->scroll_bar_background_pixel != -1) 2167 if (f->output_data.x->scroll_bar_background_pixel != -1)
2168 unload_color (f, f->output_data.x->scroll_bar_background_pixel); 2168 unload_color (f, f->output_data.x->scroll_bar_background_pixel);
2169 2169
2170#ifdef USE_TOOLKIT_SCROLL_BARS
2171 /* Scrollbar shadow colors. */
2172 if (f->output_data.x->scroll_bar_top_shadow_pixel != -1)
2173 {
2174 unload_color (f, f->output_data.x->scroll_bar_top_shadow_pixel);
2175 f->output_data.x->scroll_bar_top_shadow_pixel = -1;
2176 }
2177 if (f->output_data.x->scroll_bar_bottom_shadow_pixel != -1)
2178 {
2179 unload_color (f, f->output_data.x->scroll_bar_bottom_shadow_pixel);
2180 f->output_data.x->scroll_bar_bottom_shadow_pixel = -1;
2181 }
2182#endif /* USE_TOOLKIT_SCROLL_BARS */
2183
2170 f->output_data.x->scroll_bar_background_pixel = pixel; 2184 f->output_data.x->scroll_bar_background_pixel = pixel;
2171 if (FRAME_X_WINDOW (f) && FRAME_VISIBLE_P (f)) 2185 if (FRAME_X_WINDOW (f) && FRAME_VISIBLE_P (f))
2172 { 2186 {
@@ -4167,6 +4181,10 @@ This function is an internal primitive--use `make-frame' instead.")
4167 f->output_data.x->fontset = -1; 4181 f->output_data.x->fontset = -1;
4168 f->output_data.x->scroll_bar_foreground_pixel = -1; 4182 f->output_data.x->scroll_bar_foreground_pixel = -1;
4169 f->output_data.x->scroll_bar_background_pixel = -1; 4183 f->output_data.x->scroll_bar_background_pixel = -1;
4184#ifdef USE_TOOLKIT_SCROLL_BARS
4185 f->output_data.x->scroll_bar_top_shadow_pixel = -1;
4186 f->output_data.x->scroll_bar_bottom_shadow_pixel = -1;
4187#endif /* USE_TOOLKIT_SCROLL_BARS */
4170 record_unwind_protect (unwind_create_frame, frame); 4188 record_unwind_protect (unwind_create_frame, frame);
4171 4189
4172 f->icon_name 4190 f->icon_name
@@ -10622,6 +10640,10 @@ x_create_tip_frame (dpyinfo, parms, text)
10622 f->output_data.x->fontset = -1; 10640 f->output_data.x->fontset = -1;
10623 f->output_data.x->scroll_bar_foreground_pixel = -1; 10641 f->output_data.x->scroll_bar_foreground_pixel = -1;
10624 f->output_data.x->scroll_bar_background_pixel = -1; 10642 f->output_data.x->scroll_bar_background_pixel = -1;
10643#ifdef USE_TOOLKIT_SCROLL_BARS
10644 f->output_data.x->scroll_bar_top_shadow_pixel = -1;
10645 f->output_data.x->scroll_bar_bottom_shadow_pixel = -1;
10646#endif /* USE_TOOLKIT_SCROLL_BARS */
10625 f->icon_name = Qnil; 10647 f->icon_name = Qnil;
10626 FRAME_X_DISPLAY_INFO (f) = dpyinfo; 10648 FRAME_X_DISPLAY_INFO (f) = dpyinfo;
10627#if GLYPH_DEBUG 10649#if GLYPH_DEBUG