emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gtk narrow scrollbars (no trough)


From: Scott Jaderholm
Subject: Re: gtk narrow scrollbars (no trough)
Date: Fri, 4 Nov 2011 18:47:02 -0400

On Sun, Oct 30, 2011 at 4:43 PM, Jan Djärv <address@hidden> wrote:
Hi.

28 okt 2011 kl. 17:22 skrev Chong Yidong:

> "Jan D." <address@hidden> writes:
>
>> Can you give a screenshot?  I think scrollbar width must be the same
>> width as character width.  This simplifies things when you have two
>> windows next to each other and a scroll bar between them.
>
> You should be able to see the issue with
>
> (set-frame-parameter nil 'scroll-bar-width 100)
> (set-frame-parameter nil 'scroll-bar-width 10)
>
> Emacs 23 appears to have the same problem.


Thanks Jan for following up on these even after I failed to provide a screenshot.
 
This is not the same thing as what the OP said.  He changed the theme values, the above only change the Emacs values.
Most theme scroll bars can not be resized.  So Emacs always use the theme values for the scroll bars.  So if the theme values changes, Emacs should use them.

But the OP didn't say which Gtk+ version, which theme and which Emacs version he was using.

 GNU Emacs 24.0.90.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1) of 2011-11-03 on lychee, modified by Debian

Gtk theme is Murrine Brave Dark.

I modified these lines in gtkrc

    GtkRange       ::slider-width        = 10 # Scrollbar width.
    GtkRange       ::stepper-size        = 0 # Stepper height.

This is what the scrollbars look like in most other apps:

http://jaderholm.com/tmp/2011-11-04-scroll1.png

(though Gedit and Gvim both display them wrong)

This is what they look like in Emacs by default:

http://jaderholm.com/tmp/2011-11-04-scroll2.png

Note that the slider is the right width, it's just the trough that is wrong.

If I use (add-to-list 'default-frame-alist '(scroll-bar-width . 10)) then they look correct:

http://jaderholm.com/tmp/2011-11-04-scroll3.png

I've seen this in other themes that I haven't modified myself.

Scott

reply via email to

[Prev in Thread] Current Thread [Next in Thread]