From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?iso-8859-1?Q?Jan_Dj=E4rv?= Newsgroups: gmane.emacs.devel Subject: Re: gtk narrow scrollbars (no trough) Date: Sun, 6 Nov 2011 18:47:59 +0100 Message-ID: <309EEBC9-6E8F-4EE9-9902-D05243B2BCF1@swipnet.se> References: <4EA8F77E.5090802@swipnet.se> <87fwiduonc.fsf@gnu.org> <10E5AC7A-67A9-4016-BB76-A858EC081ECA@swipnet.se> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1251.1) Content-Type: multipart/alternative; boundary="Apple-Mail=_BCA6080D-1FB2-44E0-921C-259ADD1AC585" X-Trace: dough.gmane.org 1320601714 4816 80.91.229.12 (6 Nov 2011 17:48:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 6 Nov 2011 17:48:34 +0000 (UTC) Cc: Chong Yidong , emacs-devel@gnu.org To: Scott Jaderholm Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 06 18:48:30 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RN6pZ-0003oE-0x for ged-emacs-devel@m.gmane.org; Sun, 06 Nov 2011 18:48:29 +0100 Original-Received: from localhost ([::1]:51488 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RN6pY-0006QE-7o for ged-emacs-devel@m.gmane.org; Sun, 06 Nov 2011 12:48:28 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:56693) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RN6pV-0006Py-Fx for emacs-devel@gnu.org; Sun, 06 Nov 2011 12:48:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RN6pT-0002BY-TB for emacs-devel@gnu.org; Sun, 06 Nov 2011 12:48:25 -0500 Original-Received: from mailout.melmac.se ([62.20.26.67]:55677) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RN6pT-0002AE-G7 for emacs-devel@gnu.org; Sun, 06 Nov 2011 12:48:23 -0500 Original-Received: from mail01.melmac.se (mail01.melmac.se [62.20.26.80]) by mailout.melmac.se (Postfix) with ESMTP id B613733D0A for ; Sun, 6 Nov 2011 18:48:00 +0100 (CET) Original-Received: (qmail 28735 invoked by uid 89); 6 Nov 2011 17:47:59 -0000 Original-Received: from h-46-59-42-18.na.cust.bahnhof.se (HELO coolsville.localdomain) (boel.djarv@bdtv.se@46.59.42.18) by mail01.melmac.se with ESMTPA; 6 Nov 2011 17:47:59 -0000 Original-Received: from [172.20.199.13] (zeplin [172.20.199.13]) by coolsville.localdomain (Postfix) with ESMTPSA id 9BAF37FA058; Sun, 6 Nov 2011 18:47:59 +0100 (CET) In-Reply-To: X-Mailer: Apple Mail (2.1251.1) X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 62.20.26.67 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:145908 Archived-At: --Apple-Mail=_BCA6080D-1FB2-44E0-921C-259ADD1AC585 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 4 nov 2011 kl. 23:47 skrev Scott Jaderholm: >=20 >=20 > 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 >=20 > Gtk theme is Murrine Brave Dark. >=20 > I modified these lines in gtkrc >=20 > GtkRange ::slider-width =3D 10 # Scrollbar width. > GtkRange ::stepper-size =3D 0 # Stepper height. >=20 > This is what the scrollbars look like in most other apps: >=20 > http://jaderholm.com/tmp/2011-11-04-scroll1.png >=20 > (though Gedit and Gvim both display them wrong) >=20 > This is what they look like in Emacs by default: >=20 > http://jaderholm.com/tmp/2011-11-04-scroll2.png >=20 > Note that the slider is the right width, it's just the trough that is = wrong. >=20 > If I use (add-to-list 'default-frame-alist '(scroll-bar-width . 10)) = then they look correct: >=20 > http://jaderholm.com/tmp/2011-11-04-scroll3.png >=20 > I've seen this in other themes that I haven't modified myself. >=20 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. --Apple-Mail=_BCA6080D-1FB2-44E0-921C-259ADD1AC585 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=iso-8859-1
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.

--Apple-Mail=_BCA6080D-1FB2-44E0-921C-259ADD1AC585--