all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Scrollbars on GTK.
@ 2008-11-02 22:14 Óscar Fuentes
  2008-11-03  4:38 ` Miles Bader
  0 siblings, 1 reply; 19+ messages in thread
From: Óscar Fuentes @ 2008-11-02 22:14 UTC (permalink / raw)
  To: emacs-devel

My emacs is

GNU Emacs 23.0.60.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.12.9) of
2008-10-23 on qcore

The vertical scrollbar is a poor indication of the view position on the
buffer. For instance, I'm looking at a buffer that shows all the text
except for the last two lines; the thumb's height covers less than half
the space occupied by the scroll bar and it is on the highest
position. If I move the point to the end of the buffer, the thumb moves
a bit down but still it's lower end is mid way to the bottom of the
scrollbar.

In MS Windows, the thumb size and position on a scrollbar gives a much
more accurate idea of the text length and the point's position within
the buffer.

-- 
Oscar





^ permalink raw reply	[flat|nested] 19+ messages in thread
* Re: Scrollbars on GTK.
@ 2009-02-11 15:02 bqa01573
  2009-02-11 19:14 ` Jan Djärv
  0 siblings, 1 reply; 19+ messages in thread
From: bqa01573 @ 2009-02-11 15:02 UTC (permalink / raw)
  To: Emacs-devel


How in this?

--- ./src/gtkutil.c.orig        2008-01-10 21:16:15.000000000 +0900
+++ ./src/gtkutil.c     2009-02-11 22:44:06.000000000 +0900
@@ -3261,14 +3261,6 @@

       adj = gtk_range_get_adjustment (GTK_RANGE (wscroll));

-      /* We do the same as for MOTIF in xterm.c, assume 30 chars per line
-         rather than the real portion value.  This makes the thumb less
likely
-         to resize and that looks better.  */
-      portion = WINDOW_TOTAL_LINES (XWINDOW (bar->window)) * 30;
-      /* When the thumb is at the bottom, position == whole.
-         So we need to increase `whole' to make space for the thumb.  */
-      whole += portion;
-
       if (whole <= 0)
         top = 0, shown = 1;
       else

-- 
View this message in context: http://www.nabble.com/Scrollbars-on-GTK.-tp20294444p21956186.html
Sent from the Emacs - Dev mailing list archive at Nabble.com.





^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2009-02-11 19:14 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-02 22:14 Scrollbars on GTK Óscar Fuentes
2008-11-03  4:38 ` Miles Bader
2008-11-03  4:58   ` Óscar Fuentes
2008-11-03  7:09     ` Miles Bader
2008-11-03  7:46     ` Jan D.
2008-11-03  9:26       ` Andreas Schwab
2008-11-03 13:40         ` Jan D.
2008-11-03 11:32       ` Stefan Monnier
2008-11-03 13:45         ` Jan D.
2008-11-03 14:38           ` Óscar Fuentes
2008-11-03 15:07             ` Andreas Schwab
2008-11-03 17:29       ` Ralf Angeli
2008-11-03  5:45   ` Stefan Monnier
2008-11-03  6:06     ` Óscar Fuentes
2008-11-03 19:41   ` Richard M. Stallman
2008-11-03 20:16     ` Eli Zaretskii
2008-11-04 20:45       ` Richard M. Stallman
  -- strict thread matches above, loose matches on Subject: below --
2009-02-11 15:02 bqa01573
2009-02-11 19:14 ` Jan Djärv

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.