From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Scott Jaderholm Newsgroups: gmane.emacs.devel Subject: Re: gtk narrow scrollbars (no trough) Date: Fri, 4 Nov 2011 18:47:02 -0400 Message-ID: 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 Content-Type: multipart/alternative; boundary=00151743f846391ae404b0f07ec9 X-Trace: dough.gmane.org 1320446880 27256 80.91.229.12 (4 Nov 2011 22:48:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 4 Nov 2011 22:48:00 +0000 (UTC) Cc: Chong Yidong , emacs-devel@gnu.org To: =?ISO-8859-1?Q?Jan_Dj=E4rv?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 04 23:47:55 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 1RMSYF-0007Jm-Bg for ged-emacs-devel@m.gmane.org; Fri, 04 Nov 2011 23:47:55 +0100 Original-Received: from localhost ([::1]:33634 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMSYF-0003Gr-0Z for ged-emacs-devel@m.gmane.org; Fri, 04 Nov 2011 18:47:55 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:48884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMSYC-0003Gb-3E for emacs-devel@gnu.org; Fri, 04 Nov 2011 18:47:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RMSYB-0005cJ-03 for emacs-devel@gnu.org; Fri, 04 Nov 2011 18:47:52 -0400 Original-Received: from mail-fx0-f41.google.com ([209.85.161.41]:46770) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RMSY5-0005VS-Gb; Fri, 04 Nov 2011 18:47:45 -0400 Original-Received: by faaf16 with SMTP id f16so4112497faa.0 for ; Fri, 04 Nov 2011 15:47:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=yAOx7CwDZMB2B5pkOfvVwXJrIgHxPje8zVyK8uGwoAQ=; b=QU9v1uNxn+QNmvKOIY0710DEieWKUti/RsTQANEoNuE2YqWy11FkcoGhVPNKPQzkM1 tAlLNwJO2CHpkwaF5WdFx9crpIUD0HkuAc6+Dnu7Sv8DTaiRtYkABLgcczg78WrAY6ZJ Bf/41P2vou82Ixm//PxG6/DMhAO5Gv4SjfLbE= Original-Received: by 10.223.17.3 with SMTP id q3mr27182445faa.28.1320446863153; Fri, 04 Nov 2011 15:47:43 -0700 (PDT) Original-Received: by 10.223.97.79 with HTTP; Fri, 4 Nov 2011 15:47:02 -0700 (PDT) In-Reply-To: <10E5AC7A-67A9-4016-BB76-A858EC081ECA@swipnet.se> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.161.41 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:145876 Archived-At: --00151743f846391ae404b0f07ec9 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Sun, Oct 30, 2011 at 4:43 PM, Jan Dj=E4rv wrote: > Hi. > > 28 okt 2011 kl. 17:22 skrev Chong Yidong: > > > "Jan D." 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 =3D 10 # Scrollbar width. GtkRange ::stepper-size =3D 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 --00151743f846391ae404b0f07ec9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Sun, Oct 30, 2011 at 4:43 PM, Jan Dj=E4rv <jan.h.d@swipnet.se> wrote:
=
Hi.

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

> "Jan D." <jan.h.d@s= wipnet.se> writes:
>
>> Can you give a screenshot? =A0I think scrollbar width must be the = same
>> width as character width. =A0This 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.
=A0
This is not the same thing as what the OP said. =A0He changed t= he theme values, the above only change the Emacs values.
Most theme scroll bars can not be resized. =A0So Emacs always use the theme= values for the scroll bars. =A0So if the theme values changes, Emacs shoul= d use them.

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

=A0GNU Emacs 24.0.90.1 (x86_6= 4-pc-linux-gnu, GTK+ Version 2.20.1) of 2011-11-03 on lychee, modified by D= ebian

Gtk theme is Murrine Brave Dark.

I modified these lines in gtkrc=

=A0=A0=A0 GtkRange=A0=A0=A0=A0=A0=A0 ::slider-width=A0=A0=A0 =A0=A0= =A0 =3D 10 # Scrollbar width.
=A0=A0=A0 GtkRange=A0=A0=A0=A0=A0=A0 ::ste= pper-size=A0=A0=A0 =A0=A0=A0 =3D 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= 9;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.<= br>
Scott
--00151743f846391ae404b0f07ec9--