aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Djärv2010-08-02 16:23:06 +0200
committerJan Djärv2010-08-02 16:23:06 +0200
commit4d464ae4d6970592730a50ed716499c46931a5a4 (patch)
treed6c69bf527df76a37b0d576af91d922aef340d98 /src
parentac01763ed233b649f0daffc08b4f6e3b16d8876a (diff)
downloademacs-4d464ae4d6970592730a50ed716499c46931a5a4.tar.gz
emacs-4d464ae4d6970592730a50ed716499c46931a5a4.zip
* xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
to TRUE if depth of screen is < 16.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xterm.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 4368c621201..ba460cafa22 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,11 +1,14 @@
12010-08-02 Jan Djärv <jan.h.d@swipnet.se> 12010-08-02 Jan Djärv <jan.h.d@swipnet.se>
2 2
3 * xterm.c (x_create_toolkit_scroll_bar): Only set XtNbeNiceToColormap
4 to TRUE if depth of screen is < 16.
5
3 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless 6 * gtkutil.c (hierarchy_ch_cb, qttip_cb): Do not define unless
4 USE_GTK_TOOLTIP. 7 USE_GTK_TOOLTIP.
5 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP 8 (xg_prepare_tooltip): Return 0 unless USE_GTK_TOOLTIP
6 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless 9 (xg_show_tooltip, xg_hide_tooltip): Do nothing unless
7 USE_GTK_TOOLTIP. 10 USE_GTK_TOOLTIP.
8 (xg_create_frame_widgets): Surrond tooltip-related code with ifdef 11 (xg_create_frame_widgets): Surround tooltip-related code with ifdef
9 USE_GTK_TOOLTIP. 12 USE_GTK_TOOLTIP.
10 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP. 13 (xg_free_frame_widgets): Don't delete ttip_* unless USE_GTK_TOOLTIP.
11 14
diff --git a/src/xterm.c b/src/xterm.c
index f003fc7648d..1b2442bba3b 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -4532,8 +4532,11 @@ x_create_toolkit_scroll_bar (struct frame *f, struct scroll_bar *bar)
4532 || f->output_data.x->scroll_bar_bottom_shadow_pixel == -1) 4532 || f->output_data.x->scroll_bar_bottom_shadow_pixel == -1)
4533 /* We tried to allocate a color for the top/bottom shadow, and 4533 /* We tried to allocate a color for the top/bottom shadow, and
4534 failed, so tell Xaw3d to use dithering instead. */ 4534 failed, so tell Xaw3d to use dithering instead. */
4535 /* But only if we have a small colormap. Xaw3d can allocate nice
4536 colors itself. */
4535 { 4537 {
4536 XtSetArg (av[ac], XtNbeNiceToColormap, True); 4538 XtSetArg (av[ac], XtNbeNiceToColormap,
4539 DefaultDepthOfScreen (FRAME_X_SCREEN (f)) < 16);
4537 ++ac; 4540 ++ac;
4538 } 4541 }
4539 else 4542 else