From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Luc Teirlinck Newsgroups: gmane.emacs.devel Subject: Re: Changing the no-toolkit scrollbar thumb color. (minor issue) Date: Sun, 5 Oct 2003 23:15:22 -0500 (CDT) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200310060415.h964FMD23760@raven.dms.auburn.edu> References: <87fzijz4th.fsf@raven.i.defaultvalue.org> <200309262123.h8QLNNi07638@raven.dms.auburn.edu> <200309272155.h8RLttv09524@raven.dms.auburn.edu> <200309281642.h8SGgxc11119@raven.dms.auburn.edu> <200309281801.h8SI1gV11332@raven.dms.auburn.edu> <200309300011.h8U0B6021222@raven.dms.auburn.edu> <3F7F1343.2020208@swipnet.se> <200310051756.h95Hunq22538@raven.dms.auburn.edu> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1065414088 16372 80.91.224.253 (6 Oct 2003 04:21:28 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 6 Oct 2003 04:21:28 +0000 (UTC) Cc: bob@rattlesnake.com, jan.h.d@swipnet.se, rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Mon Oct 06 06:21:26 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 1A6MsA-0001SF-00 for ; Mon, 06 Oct 2003 06:21:26 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1A6Ms9-0004jj-00 for ; Mon, 06 Oct 2003 06:21:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A6Mrf-0004po-Uz for emacs-devel@quimby.gnus.org; Mon, 06 Oct 2003 00:20:55 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1A6MrL-0004QV-Jp for emacs-devel@gnu.org; Mon, 06 Oct 2003 00:20:35 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1A6Mqk-0003J0-MN for emacs-devel@gnu.org; Mon, 06 Oct 2003 00:20:29 -0400 Original-Received: from [131.204.53.104] (helo=manatee.dms.auburn.edu) by monty-python.gnu.org with esmtp (Exim 4.24) id 1A6MqD-00029q-B8; Mon, 06 Oct 2003 00:19:25 -0400 Original-Received: from raven.dms.auburn.edu (raven.dms.auburn.edu [131.204.53.29]) by manatee.dms.auburn.edu (8.12.10/8.12.10) with ESMTP id h964JMAJ001314; Sun, 5 Oct 2003 23:19:23 -0500 (CDT) Original-Received: (from teirllm@localhost) by raven.dms.auburn.edu (8.11.6+Sun/8.11.6) id h964FMD23760; Sun, 5 Oct 2003 23:15:22 -0500 (CDT) X-Authentication-Warning: raven.dms.auburn.edu: teirllm set sender to teirllm@dms.auburn.edu using -f Original-To: miles@gnu.org In-reply-to: (message from Miles Bader on 06 Oct 2003 11:22:05 +0900) 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:16956 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:16956 Is there absolutely no way to override pixmap based themes and make them use colors for the scroll bar by first setting all involved pixmaps to "". I am not very familiar with GTK customization, but I would normally have expected some variant of the stuff below to work. (Maybe it contains some errors, but is there any reason why the general principle would not work?) According to (emacs)GTK styles, one should, unless I misunderstood, even be able to specify any pixmap whatsoever, including personal ones, for the scroll bar faces. I guess I should update my GTK version. My dinosaur version seems to use slightly different semantics (or so I believe), so I can not check myself. When I tried, it complained about "red" being an invalid string constant. style "scroll" { bg_pixmap[NORMAL] = "" bg_pixmap[INSENSITIVE] = "" bg_pixmap[ACTIVE] = "" bg_pixmap[PRELIGHT] = "" fg[NORMAL] = "red" # The arrow color. bg[NORMAL] = "yellow" # The thumb and background around the arrow. bg[ACTIVE] = "blue" # The trough color. bg[PRELIGHT] = "white" # The thumb color when the mouse is over it. } widget_class "*GtkVScrollbar" style "scroll" Sincerely, Luc.