all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Jan Djärv" <jan.h.d@swipnet.se>
To: Scott Jaderholm <jaderholm@gmail.com>
Cc: Chong Yidong <cyd@gnu.org>, emacs-devel@gnu.org
Subject: Re: gtk narrow scrollbars (no trough)
Date: Sun, 6 Nov 2011 18:47:59 +0100	[thread overview]
Message-ID: <309EEBC9-6E8F-4EE9-9902-D05243B2BCF1@swipnet.se> (raw)
In-Reply-To: <CAA9PRe_WgWjXdpisAOkFWssfaLMo6LJ7vguF-6Q_5W7aHO2tbA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1511 bytes --]


4 nov 2011 kl. 23:47 skrev Scott Jaderholm:

> 
> 
>  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.
> 

When I modify Murrine Brave Dark as described above, I do get smaller scroll bars in Emacs.  The scroll bars in gnome-terminal and Emacs look exactly the same.  But this also depends on font size.  Emacs pads the scroll bar to a multiple of the font size.  That is because if you do a C-x 3 there is nothing to take up the slack if the scroll bar is different from the character width.

I don't think there is a bug here. This is a known limitation in Emacs, and so far there has been no work into remove it.

	Jan D.


[-- Attachment #2: Type: text/html, Size: 2579 bytes --]

      reply	other threads:[~2011-11-06 17: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
2011-11-06 17:47         ` Jan Djärv [this message]

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=309EEBC9-6E8F-4EE9-9902-D05243B2BCF1@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=cyd@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=jaderholm@gmail.com \
    /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.