From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Jan D." Newsgroups: gmane.emacs.devel Subject: Re: Changing the no-toolkit scrollbar thumb color. (minor issue) Date: Sun, 28 Sep 2003 18:38:43 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <391328C4-F1D2-11D7-BE88-00039363E640@swipnet.se> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (Apple Message framework v552) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1064767635 3898 80.91.224.253 (28 Sep 2003 16:47:15 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 28 Sep 2003 16:47:15 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Sep 28 18:47:14 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1A3ehW-0006qA-00 for ; Sun, 28 Sep 2003 18:47:14 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1A3ehV-0007KA-00 for ; Sun, 28 Sep 2003 18:47:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3egB-0002G5-3c for emacs-devel@quimby.gnus.org; Sun, 28 Sep 2003 12:45:51 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 1A3efh-000254-Fy for emacs-devel@gnu.org; Sun, 28 Sep 2003 12:45:21 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 1A3efc-000238-86 for emacs-devel@gnu.org; Sun, 28 Sep 2003 12:45:19 -0400 Original-Received: from [193.201.16.94] (helo=stubby.bodenonline.com) by monty-python.gnu.org with esmtp (Exim 4.22) id 1A3eab-0000ch-5h for emacs-devel@gnu.org; Sun, 28 Sep 2003 12:40:05 -0400 Original-Received: from accessno42.bodenonline.com (accessno42.bodenonline.com [193.201.16.44]) by stubby.bodenonline.com (8.12.1/8.12.1) with ESMTP id h8SHNoKa010272; Sun, 28 Sep 2003 19:24:01 +0200 Original-To: bob@rattlesnake.com In-Reply-To: X-Mailer: Apple Mail (2.552) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:16725 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16725 > > No -- I just tried several variations on how to create a > ~/.emacs.d/gtkrc file and none worked. (I also tried putting the > variations into ~/.gtkrc-2.0 just in case ~/.emacs.d/gtkrc was the > wrong name for the Emacs-specific file; that also failed.) > > This is a problem with the documentation. It should be clear enough. Yes it should and I am sure it can be improved. But I need to know why it failed for you. Can you mail some of the attempts you tried? Also, what is your theme? Themes that use pixmaps for scrollbars also have the side effect that scrollbars can not be customized in any way w.r.t. foreground and/or background. This could be added to the documentation. There are some problems with GTK themes and Emacs faces that are hard to resolve: The faces Emacs have can not represent all scrollbars that GTK can draw, due to the fact that scrollbars can use pixmaps, and faces can't. Themes can change at runtime. I currently know of any good way for Emacs to know when this happens, but it probably can be detected. GTK/Gnome users expect to be able to switch themes at runtime. If there is a customized face, what should take precedence? And as said before, in some instances the scrollbar can not be changed due to the restrictions of the theme. GTK is not very good at customizing widgets, the mechanism that exists is basically just there for the implementation of themes. That is the only supported way to change the look of GTK. Emacs faces does not go well with that. We can add more to the documentation about the restrictions, I guess. Jan D.