From: Scott Jaderholm <jaderholm@gmail.com>
To: "Jan Djärv" <jan.h.d@swipnet.se>
Cc: Chong Yidong <cyd@gnu.org>, emacs-devel@gnu.org
Subject: Re: gtk narrow scrollbars (no trough)
Date: Fri, 4 Nov 2011 18:47:02 -0400 [thread overview]
Message-ID: <CAA9PRe_WgWjXdpisAOkFWssfaLMo6LJ7vguF-6Q_5W7aHO2tbA@mail.gmail.com> (raw)
In-Reply-To: <10E5AC7A-67A9-4016-BB76-A858EC081ECA@swipnet.se>
[-- Attachment #1: Type: text/plain, Size: 1983 bytes --]
On Sun, Oct 30, 2011 at 4:43 PM, Jan Djärv <jan.h.d@swipnet.se> wrote:
> Hi.
>
> 28 okt 2011 kl. 17:22 skrev Chong Yidong:
>
> > "Jan D." <jan.h.d@swipnet.se> 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
[-- Attachment #2: Type: text/html, Size: 2873 bytes --]
next prev parent reply other threads:[~2011-11-04 22:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-27 4:06 gtk narrow scrollbars (no trough) Scott Jaderholm
2011-10-27 6:17 ` Jan D.
2011-10-28 15:22 ` Chong Yidong
2011-10-30 20:43 ` Jan Djärv
2011-11-04 22:47 ` Scott Jaderholm [this message]
2011-11-06 17:47 ` Jan Djärv
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAA9PRe_WgWjXdpisAOkFWssfaLMo6LJ7vguF-6Q_5W7aHO2tbA@mail.gmail.com \
--to=jaderholm@gmail.com \
--cc=cyd@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=jan.h.d@swipnet.se \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.