diff options
| author | Jan Djärv | 2010-06-22 14:28:08 +0200 |
|---|---|---|
| committer | Jan Djärv | 2010-06-22 14:28:08 +0200 |
| commit | bc869eca8c91810c66ead464b57630ccebabaf29 (patch) | |
| tree | c345294f2385789af92fed61909430dfecd1aeef /src/xterm.c | |
| parent | 6555773f3fa4f997c58c85dc1160afee875ad31d (diff) | |
| download | emacs-bc869eca8c91810c66ead464b57630ccebabaf29.tar.gz emacs-bc869eca8c91810c66ead464b57630ccebabaf29.zip | |
Hide scroll bar when window is too small to avoid Gtk+ warning.
* gtkutil.c (xg_update_scrollbar_pos): Show/hide scroll bar as needed
if height is less than scroll bar min size.
(xg_show_scroll_bar): Remove, show moved to xg_update_scrollbar_pos.
* gtkutil.h (xg_show_scroll_bar): : Remove.
* xterm.c (x_scroll_bar_create): Remove call to xg_show_scroll_bar.
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c index f195c4fbbd5..59573a5942e 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -4998,7 +4998,6 @@ x_scroll_bar_create (w, top, left, width, height) | |||
| 4998 | left + VERTICAL_SCROLL_BAR_WIDTH_TRIM, | 4998 | left + VERTICAL_SCROLL_BAR_WIDTH_TRIM, |
| 4999 | width - VERTICAL_SCROLL_BAR_WIDTH_TRIM * 2, | 4999 | width - VERTICAL_SCROLL_BAR_WIDTH_TRIM * 2, |
| 5000 | max (height, 1)); | 5000 | max (height, 1)); |
| 5001 | xg_show_scroll_bar (bar->x_window); | ||
| 5002 | #else /* not USE_GTK */ | 5001 | #else /* not USE_GTK */ |
| 5003 | Widget scroll_bar = SCROLL_BAR_X_WIDGET (FRAME_X_DISPLAY (f), bar); | 5002 | Widget scroll_bar = SCROLL_BAR_X_WIDGET (FRAME_X_DISPLAY (f), bar); |
| 5004 | XtConfigureWidget (scroll_bar, | 5003 | XtConfigureWidget (scroll_bar, |