From: "Jan D." <jan.h.d@swipnet.se>
Cc: emacs-devel@gnu.org
Subject: Re: gtk Emacs: how specify menu font?
Date: Fri, 21 Mar 2003 15:23:05 +0100 [thread overview]
Message-ID: <3E7B2049.4040904@swipnet.se> (raw)
In-Reply-To: <m18w7rQ-000IeGC@rattlesnake.com>
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.
next prev parent reply other threads:[~2003-03-21 14:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-18 14:34 gtk Emacs: how specify menu font? Robert J. Chassell
2003-03-18 22:21 ` Jan D.
2003-03-20 21:46 ` Robert J. Chassell
2003-03-21 14:23 ` Jan D. [this message]
2003-03-21 15:25 ` Robert J. Chassell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3E7B2049.4040904@swipnet.se \
--to=jan.h.d@swipnet.se \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).