From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Robert J. Chassell" Newsgroups: gmane.emacs.devel Subject: Re: gtk Emacs: how specify menu font? Date: Thu, 20 Mar 2003 21:46:04 +0000 (UTC) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200303182319.h2INJ0bN024745@stubby.bodenonline.com> Reply-To: bob@rattlesnake.com NNTP-Posting-Host: main.gmane.org X-Trace: main.gmane.org 1048197123 28415 80.91.224.249 (20 Mar 2003 21:52:03 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 20 Mar 2003 21:52:03 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Thu Mar 20 22:52:02 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18w7xC-0007OB-00 for ; Thu, 20 Mar 2003 22:52:02 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18w7yc-00008P-00 for ; Thu, 20 Mar 2003 22:53:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18w7vB-00049z-0C for emacs-devel@quimby.gnus.org; Thu, 20 Mar 2003 16:49:57 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18w7tr-0003kS-00 for emacs-devel@gnu.org; Thu, 20 Mar 2003 16:48:35 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18w7tZ-00039S-00 for emacs-devel@gnu.org; Thu, 20 Mar 2003 16:48:23 -0500 Original-Received: from megalith.rattlesnake.com ([140.186.114.245] helo=rattlesnake.com) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18w7rS-0000nb-00 for emacs-devel@gnu.org; Thu, 20 Mar 2003 16:46:07 -0500 Original-Received: by rattlesnake.com via sendmail from stdin id (Debian Smail3.2.0.114) Thu, 20 Mar 2003 21:46:04 +0000 (UTC) Original-To: "Jan D." In-reply-to: <200303182319.h2INJ0bN024745@stubby.bodenonline.com> (jan.h.d@swipnet.se) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:12496 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12496 How do I specify a background color for both the menubar and the sub menus? GNOME 1.4, BrushedMetalClean theme Today's Debian testing, 2003 Mar 20 Today's GNU Emacs CVS snapshot, Thu, 2003 Mar 20 20:18 UTC GNU Emacs 21.3.50.235 (i686-pc-linux-gnu) configured with --with-x-toolkit=gtk You wrote: It is because this updates the X resource database. ... Please see the Emacs manual, X Resources -> GTK resources for ways of doing this. Thank you! I have done that and am writing this message in an Emacs configured with --with-x-toolkit=gtk in a window that looks OK, although it is not what I set out to create. (Incidentally, this instance of Emacs does not flicker, which you suggested might be due to my having some older libraries.) It turns out that in my ~/.gtkrc file I could specify a background for the menubar, but not for the sub menus. The "green" font color for the menubar was hard to read in the sub menus, so I ended up commenting out the bg for the menubar. Here is the ~/.gtkrc file after some experimenting (by the way, I linked it to ~/.gtkrc-2.0, although that does not seem to matter): style "menufont" { font_name = "times 20" fg[NORMAL] = "green4" fg[SELECTED] = "green3" fg[ACTIVE] = "green2" fg[PRELIGHT] = "green1" } widget "*menu*" style "menufont" Note that no background is set; when it is set, it only effects the menubar, not the sub menus. Strangely enough, the following produces exactly the same results -- none of the `bg', background, colors have any effect on either the menubar or the submenus, even though they are not commented out! style "itemfont" { font_name = "times 20" bg[NORMAL] = "DodgerBlue4" bg[ACTIVE] = "DodgerBlue3" bg[PRELIGHT] = "DodgerBlue2" fg[NORMAL] = "green4" fg[SELECTED] = "green3" fg[ACTIVE] = "green2" fg[PRELIGHT] = "green1" } widget "*item*" style "itemfont" What should I do to create a "DodgerBlue4" background for *both* the menubar and its submenus? (Then I will use "green", not "green4" for fg[NORMAL]; that is what the Lucid toolkit permits me to do.) -- Robert J. Chassell Rattlesnake Enterprises http://www.rattlesnake.com GnuPG Key ID: 004B4AC8 http://www.teak.cc bob@rattlesnake.com