Ethereal-dev: Re: [ethereal-dev] Byte view background colour

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Neil Hunter <neil.hunter@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 11 Jul 2000 09:28:09 +0100 (BST)
On Mon, 10 Jul 2000, Guy Harris wrote:

> Have you (or whoever installed GTK+ on your system, or whoever made GTK+
> part of the OS on your system, or...) configured it to do that?

Probably as part of the desktop theme - but I can't get the background colour
of the bytes view to change :(

> GTK+ is controlled by "gtkrc" files; it supports both a global "gtkrc"
> file (if GTK+ is installed under "/usr/local", it's in
> "/usr/local/etc/gtk/gtkrc"; if it's installed as a "system" library,
> it's in some "etc" directory somewhere, possibly in "/etc/gtk/gtkrc"),
> and per-user "gtkrc" files in "~/.gtkrc".
> 
> Applications can also arrange to have application-specific "gtkrc"
> files; Ethereal has one in "~/.ethereal/gtkrc".

Should the Ethereal one override any previous settings?

> Perhaps one of those files on your system sets the background color of
> the GtkText widget (which is what's used for the byte view)?  All three
> widgets have a white background when I run Ethereal.

It appears to be set as part of a default style applied to the GtkWidget class
- but I don't seem to be able to override the settings for the GtkText class. I
must be doing something wrong :(

Cheers,
  Neil

-------------------------------------------------------------------------------
  Neil Hunter                                     Tel:    +44 (0)113 207 6073
  Internet Systems Developer                      Fax:    +44 (0)113 234 6065
  Energis Squared                                 Mobile: +44 (0)7787 100 649
  http://www.energis-squared.com/
                    ---------------------------------------
  This email is confidential and may be privileged. If you are not the named
  recipient please notify the sender immediately and do not disclose to
  another person or use it and take copies. If you receive this message in
  error please call the switchboard on + 44 (0)113 234 5100.
-------------------------------------------------------------------------------