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: Mon, 29 Sep 2003 18:01:41 +0200 (CEST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200309291659.h8TGxr5G004544@stubby.bodenonline.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1064854203 28897 80.91.224.253 (29 Sep 2003 16:50:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 29 Sep 2003 16:50:03 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Sep 29 18:50:01 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 1A41Dl-0000dH-00 for ; Mon, 29 Sep 2003 18:50:01 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1A41Dl-0002Uk-00 for ; Mon, 29 Sep 2003 18:50:01 +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 1A40uZ-0003EB-Hf for emacs-devel@quimby.gnus.org; Mon, 29 Sep 2003 12:30:11 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.22) id 1A40ob-0001hh-8o for emacs-devel@gnu.org; Mon, 29 Sep 2003 12:24:01 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.22) id 1A40o2-0001W8-3C for emacs-devel@gnu.org; Mon, 29 Sep 2003 12:23:57 -0400 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.22) id 1A40o1-0001Pj-Ic for emacs-devel@gnu.org; Mon, 29 Sep 2003 12:23:25 -0400 Original-Received: from [193.201.16.94] (helo=stubby.bodenonline.com) by mx20.gnu.org with esmtp (Exim 4.22) id 1A40gL-00055s-96 for emacs-devel@gnu.org; Mon, 29 Sep 2003 12:15:29 -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 h8TGxr5G004544; Mon, 29 Sep 2003 18:59:53 +0200 In-Reply-To: "from Robert J. Chassell at Sep 28, 2003 09:17:07 pm" Original-To: bob@rattlesnake.com 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:16773 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16773 > 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? > > In both ~/.emacs.d/gtkrc and ~/.gtkrc-2.0, I tried > > style "dark_bg_scrollbar_style" > { > bg[NORMAL] = "green" > fg[NORMAL] = "red" > } > > widget_class "*Emacs.pane.emacs.verticalScrollbar*" style "dark_bg_scrollbar_style" > > > and > > > style "dark_bg_scrollbar_style" > { > bg[ACTIVE] = "green" > fg[ACTIVE] = "red" > } > > widget_class "*verticalScrollbar*" style "dark_bg_scrollbar_style" Ouch, I've put a typo in to the manual (now fixed). verticalScrollbar shall be verticalScrollBar (capital B). If you change that and widget_class to widget, does it help? > Emacs faces does not go well with that. We can add more to the > documentation about the restrictions, I guess. > > Yes, please add more to the documentation. Also, please be sure to > add to the customize command, since many people will use it without > reading the documentation. The problem is that these restrictions are not documented by GTK (for example the fact that pixmap based scrollbars does not allow changes for colors), so we just find them as they happen. One extreme "solution" is to make Emacs behave as other GTK applications, that is provide no customizations at all, except through themes. That makes documentation a whole lot simpler :-). Until then, I'll add an example for this case to the manual next week (going away for a week just now). Jan D.