diff options
| author | Joakim Verona | 2013-09-12 08:36:32 +0200 |
|---|---|---|
| committer | Joakim Verona | 2013-09-12 08:36:32 +0200 |
| commit | a87e9c8f9fb3c2696bed6c1f8edb7542461d673c (patch) | |
| tree | af6839d3c9c43cb848d6cb822e02f98fde135980 /src | |
| parent | ff7e4c63a5a19f795340ce9a7b9e2b5f55d50587 (diff) | |
| parent | 8ffbc36b766d463cb4d86b6c2e5c9054a9c91234 (diff) | |
| download | emacs-a87e9c8f9fb3c2696bed6c1f8edb7542461d673c.tar.gz emacs-a87e9c8f9fb3c2696bed6c1f8edb7542461d673c.zip | |
merge from trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/xterm.c | 15 |
2 files changed, 17 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index e1276f54d03..88aa22b30dc 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-09-12 Dmitry Antipov <dmantipov@yandex.ru> | ||
| 2 | |||
| 3 | * xterm.c (x_set_scroll_bar_thumb) [USE_LUCID && !HAVE_XAW3D]: Clip | ||
| 4 | scroll bar values to prevent thumb from disappear and update comment. | ||
| 5 | |||
| 1 | 2013-09-11 Glenn Morris <rgm@gnu.org> | 6 | 2013-09-11 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * emacs.c (usage_message): Possessive apostrophe tweak. | 8 | * emacs.c (usage_message): Possessive apostrophe tweak. |
diff --git a/src/xterm.c b/src/xterm.c index 322bacf2332..6004fcf6c0a 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -4807,12 +4807,21 @@ x_set_toolkit_scroll_bar_thumb (struct scroll_bar *bar, int portion, int positio | |||
| 4807 | top = max (0, min (1, top)); | 4807 | top = max (0, min (1, top)); |
| 4808 | else | 4808 | else |
| 4809 | top = old_top; | 4809 | top = old_top; |
| 4810 | #if ! defined (HAVE_XAW3D) | ||
| 4811 | /* With Xaw, 'top' values too closer to 1.0 may | ||
| 4812 | cause the thumb to disappear. Fix that. */ | ||
| 4813 | top = min (top, 0.99f); | ||
| 4814 | #endif | ||
| 4810 | /* Keep two pixels available for moving the thumb down. */ | 4815 | /* Keep two pixels available for moving the thumb down. */ |
| 4811 | shown = max (0, min (1 - top - (2.0f / height), shown)); | 4816 | shown = max (0, min (1 - top - (2.0f / height), shown)); |
| 4817 | #if ! defined (HAVE_XAW3D) | ||
| 4818 | /* Likewise with too small 'shown'. */ | ||
| 4819 | shown = max (shown, 0.01f); | ||
| 4820 | #endif | ||
| 4812 | 4821 | ||
| 4813 | /* If the call to XawScrollbarSetThumb below doesn't seem to work, | 4822 | /* If the call to XawScrollbarSetThumb below doesn't seem to |
| 4814 | check that your system's configuration file contains a define | 4823 | work, check that 'NARROWPROTO' is defined in src/config.h. |
| 4815 | for `NARROWPROTO'. See s/freebsd.h for an example. */ | 4824 | If this is not so, most likely you need to fix configure. */ |
| 4816 | if (top != old_top || shown != old_shown) | 4825 | if (top != old_top || shown != old_shown) |
| 4817 | { | 4826 | { |
| 4818 | if (bar->dragging == -1) | 4827 | if (bar->dragging == -1) |