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: gtk Emacs: how specify menu font? Date: Fri, 21 Mar 2003 15:23:05 +0100 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <3E7B2049.4040904@swipnet.se> References: <200303182319.h2INJ0bN024745@stubby.bodenonline.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1048256847 7678 80.91.224.249 (21 Mar 2003 14:27:27 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 21 Mar 2003 14:27:27 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Mar 21 15:27:26 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 18wNUU-0001za-00 for ; Fri, 21 Mar 2003 15:27:26 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18wNWF-0000zO-00 for ; Fri, 21 Mar 2003 15:29:15 +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 18wNSB-00018y-03 for emacs-devel@quimby.gnus.org; Fri, 21 Mar 2003 09:25:03 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18wNRf-0000rT-00 for emacs-devel@gnu.org; Fri, 21 Mar 2003 09:24:31 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18wNRM-0000Jl-00 for emacs-devel@gnu.org; Fri, 21 Mar 2003 09:24:13 -0500 Original-Received: from stubby.bodenonline.com ([193.201.16.94]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18wNQT-0007f6-00 for emacs-devel@gnu.org; Fri, 21 Mar 2003 09:23:17 -0500 Original-Received: from swipnet.se (accessno42.bodenonline.com [193.201.16.44]) h2LFFTbL023459; Fri, 21 Mar 2003 16:15:35 +0100 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030210 X-Accept-Language: en-us, en Original-To: bob@rattlesnake.com In-Reply-To: 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:12507 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12507 Robert J. Chassell wrote: > How do I specify a background color for both the menubar and 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.) I can not understand how the naming for menus and dialogs work. I filed a bug about it once, but it won't be fixed in GTK, see http://bugzilla.gnome.org/show_bug.cgi?id=101987. In order to make this particular case work, create an ~/emacs.d/gtkrc file with your style above in it, and say: widget_class "*Menu*" style "menufont" Only Emacs reads ~/emacs.d/gtkrc so in that file one can use a more "fuzzy" matching in widget and widget_class. You can of course do the same in ~/.gtkrc-2.0, but that would affect all applications. Jan D.