diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 3 | ||||
| -rw-r--r-- | src/xfns.c | 12 | ||||
| -rw-r--r-- | src/xterm.c | 4 | ||||
| -rw-r--r-- | src/xterm.h | 6 |
4 files changed, 15 insertions, 10 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 84fe1f02560..babfb66bacc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -2,6 +2,9 @@ | |||
| 2 | 2 | ||
| 3 | * xterm.h (struct x_output) [USE_X_TOOLKIT || USE_GTK]: Define | 3 | * xterm.h (struct x_output) [USE_X_TOOLKIT || USE_GTK]: Define |
| 4 | menubar_height as such. Tweak comment. | 4 | menubar_height as such. Tweak comment. |
| 5 | [USE_LUCID && USE_TOOLKIT_SCROLL_BARS]: Likewise for | ||
| 6 | scroll_bar_top_shadow_pixel and scroll_bar_bottom_shadow_pixel. | ||
| 7 | All related users changed. | ||
| 5 | (FRAME_MENUBAR_HEIGHT) [!USE_X_TOOLKIT && !USE_GTK]: No-op. | 8 | (FRAME_MENUBAR_HEIGHT) [!USE_X_TOOLKIT && !USE_GTK]: No-op. |
| 6 | * xterm.c (handle_one_xevent): | 9 | * xterm.c (handle_one_xevent): |
| 7 | * gtkutil.c (xg_event_is_for_menubar): | 10 | * gtkutil.c (xg_event_is_for_menubar): |
diff --git a/src/xfns.c b/src/xfns.c index 1bdb676af04..6574beddc8b 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -1221,7 +1221,7 @@ x_set_scroll_bar_background (struct frame *f, Lisp_Object value, Lisp_Object old | |||
| 1221 | if (f->output_data.x->scroll_bar_background_pixel != -1) | 1221 | if (f->output_data.x->scroll_bar_background_pixel != -1) |
| 1222 | unload_color (f, f->output_data.x->scroll_bar_background_pixel); | 1222 | unload_color (f, f->output_data.x->scroll_bar_background_pixel); |
| 1223 | 1223 | ||
| 1224 | #ifdef USE_TOOLKIT_SCROLL_BARS | 1224 | #if defined (USE_LUCID) && defined (USE_TOOLKIT_SCROLL_BARS) |
| 1225 | /* Scrollbar shadow colors. */ | 1225 | /* Scrollbar shadow colors. */ |
| 1226 | if (f->output_data.x->scroll_bar_top_shadow_pixel != -1) | 1226 | if (f->output_data.x->scroll_bar_top_shadow_pixel != -1) |
| 1227 | { | 1227 | { |
| @@ -1233,7 +1233,7 @@ x_set_scroll_bar_background (struct frame *f, Lisp_Object value, Lisp_Object old | |||
| 1233 | unload_color (f, f->output_data.x->scroll_bar_bottom_shadow_pixel); | 1233 | unload_color (f, f->output_data.x->scroll_bar_bottom_shadow_pixel); |
| 1234 | f->output_data.x->scroll_bar_bottom_shadow_pixel = -1; | 1234 | f->output_data.x->scroll_bar_bottom_shadow_pixel = -1; |
| 1235 | } | 1235 | } |
| 1236 | #endif /* USE_TOOLKIT_SCROLL_BARS */ | 1236 | #endif /* USE_LUCID && USE_TOOLKIT_SCROLL_BARS */ |
| 1237 | 1237 | ||
| 1238 | f->output_data.x->scroll_bar_background_pixel = pixel; | 1238 | f->output_data.x->scroll_bar_background_pixel = pixel; |
| 1239 | if (FRAME_X_WINDOW (f) && FRAME_VISIBLE_P (f)) | 1239 | if (FRAME_X_WINDOW (f) && FRAME_VISIBLE_P (f)) |
| @@ -2950,10 +2950,10 @@ This function is an internal primitive--use `make-frame' instead. */) | |||
| 2950 | FRAME_FONTSET (f) = -1; | 2950 | FRAME_FONTSET (f) = -1; |
| 2951 | f->output_data.x->scroll_bar_foreground_pixel = -1; | 2951 | f->output_data.x->scroll_bar_foreground_pixel = -1; |
| 2952 | f->output_data.x->scroll_bar_background_pixel = -1; | 2952 | f->output_data.x->scroll_bar_background_pixel = -1; |
| 2953 | #ifdef USE_TOOLKIT_SCROLL_BARS | 2953 | #if defined (USE_LUCID) && defined (USE_TOOLKIT_SCROLL_BARS) |
| 2954 | f->output_data.x->scroll_bar_top_shadow_pixel = -1; | 2954 | f->output_data.x->scroll_bar_top_shadow_pixel = -1; |
| 2955 | f->output_data.x->scroll_bar_bottom_shadow_pixel = -1; | 2955 | f->output_data.x->scroll_bar_bottom_shadow_pixel = -1; |
| 2956 | #endif /* USE_TOOLKIT_SCROLL_BARS */ | 2956 | #endif /* USE_LUCID && USE_TOOLKIT_SCROLL_BARS */ |
| 2957 | f->output_data.x->white_relief.pixel = -1; | 2957 | f->output_data.x->white_relief.pixel = -1; |
| 2958 | f->output_data.x->black_relief.pixel = -1; | 2958 | f->output_data.x->black_relief.pixel = -1; |
| 2959 | 2959 | ||
| @@ -4952,10 +4952,10 @@ x_create_tip_frame (struct x_display_info *dpyinfo, | |||
| 4952 | FRAME_FONTSET (f) = -1; | 4952 | FRAME_FONTSET (f) = -1; |
| 4953 | f->output_data.x->scroll_bar_foreground_pixel = -1; | 4953 | f->output_data.x->scroll_bar_foreground_pixel = -1; |
| 4954 | f->output_data.x->scroll_bar_background_pixel = -1; | 4954 | f->output_data.x->scroll_bar_background_pixel = -1; |
| 4955 | #ifdef USE_TOOLKIT_SCROLL_BARS | 4955 | #if defined (USE_LUCID) && defined (USE_TOOLKIT_SCROLL_BARS) |
| 4956 | f->output_data.x->scroll_bar_top_shadow_pixel = -1; | 4956 | f->output_data.x->scroll_bar_top_shadow_pixel = -1; |
| 4957 | f->output_data.x->scroll_bar_bottom_shadow_pixel = -1; | 4957 | f->output_data.x->scroll_bar_bottom_shadow_pixel = -1; |
| 4958 | #endif /* USE_TOOLKIT_SCROLL_BARS */ | 4958 | #endif /* USE_LUCID && USE_TOOLKIT_SCROLL_BARS */ |
| 4959 | f->output_data.x->white_relief.pixel = -1; | 4959 | f->output_data.x->white_relief.pixel = -1; |
| 4960 | f->output_data.x->black_relief.pixel = -1; | 4960 | f->output_data.x->black_relief.pixel = -1; |
| 4961 | 4961 | ||
diff --git a/src/xterm.c b/src/xterm.c index 98737951022..8513427972a 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -9269,13 +9269,13 @@ x_free_frame_resources (struct frame *f) | |||
| 9269 | unload_color (f, f->output_data.x->scroll_bar_background_pixel); | 9269 | unload_color (f, f->output_data.x->scroll_bar_background_pixel); |
| 9270 | if (f->output_data.x->scroll_bar_foreground_pixel != -1) | 9270 | if (f->output_data.x->scroll_bar_foreground_pixel != -1) |
| 9271 | unload_color (f, f->output_data.x->scroll_bar_foreground_pixel); | 9271 | unload_color (f, f->output_data.x->scroll_bar_foreground_pixel); |
| 9272 | #ifdef USE_TOOLKIT_SCROLL_BARS | 9272 | #if defined (USE_LUCID) && defined (USE_TOOLKIT_SCROLL_BARS) |
| 9273 | /* Scrollbar shadow colors. */ | 9273 | /* Scrollbar shadow colors. */ |
| 9274 | if (f->output_data.x->scroll_bar_top_shadow_pixel != -1) | 9274 | if (f->output_data.x->scroll_bar_top_shadow_pixel != -1) |
| 9275 | unload_color (f, f->output_data.x->scroll_bar_top_shadow_pixel); | 9275 | unload_color (f, f->output_data.x->scroll_bar_top_shadow_pixel); |
| 9276 | if (f->output_data.x->scroll_bar_bottom_shadow_pixel != -1) | 9276 | if (f->output_data.x->scroll_bar_bottom_shadow_pixel != -1) |
| 9277 | unload_color (f, f->output_data.x->scroll_bar_bottom_shadow_pixel); | 9277 | unload_color (f, f->output_data.x->scroll_bar_bottom_shadow_pixel); |
| 9278 | #endif /* USE_TOOLKIT_SCROLL_BARS */ | 9278 | #endif /* USE_LUCID && USE_TOOLKIT_SCROLL_BARS */ |
| 9279 | if (f->output_data.x->white_relief.pixel != -1) | 9279 | if (f->output_data.x->white_relief.pixel != -1) |
| 9280 | unload_color (f, f->output_data.x->white_relief.pixel); | 9280 | unload_color (f, f->output_data.x->white_relief.pixel); |
| 9281 | if (f->output_data.x->black_relief.pixel != -1) | 9281 | if (f->output_data.x->black_relief.pixel != -1) |
diff --git a/src/xterm.h b/src/xterm.h index 398d70fc8fc..569433e4242 100644 --- a/src/xterm.h +++ b/src/xterm.h | |||
| @@ -541,10 +541,12 @@ struct x_output | |||
| 541 | bars). */ | 541 | bars). */ |
| 542 | unsigned long scroll_bar_background_pixel; | 542 | unsigned long scroll_bar_background_pixel; |
| 543 | 543 | ||
| 544 | /* Top and bottom shadow colors for 3d toolkit scrollbars. -1 means | 544 | #if defined (USE_LUCID) && defined (USE_TOOLKIT_SCROLL_BARS) |
| 545 | let the scroll compute them itself. */ | 545 | /* Top and bottom shadow colors for 3D Lucid scrollbars. |
| 546 | -1 means let the scroll compute them itself. */ | ||
| 546 | unsigned long scroll_bar_top_shadow_pixel; | 547 | unsigned long scroll_bar_top_shadow_pixel; |
| 547 | unsigned long scroll_bar_bottom_shadow_pixel; | 548 | unsigned long scroll_bar_bottom_shadow_pixel; |
| 549 | #endif | ||
| 548 | 550 | ||
| 549 | /* Descriptor for the cursor in use for this window. */ | 551 | /* Descriptor for the cursor in use for this window. */ |
| 550 | Cursor text_cursor; | 552 | Cursor text_cursor; |