Add a "color.h" file that declares a nominally-toolkit-independent
authorGuy Harris <guy@alum.mit.edu>
Tue, 21 Nov 2000 23:54:10 +0000 (23:54 -0000)
committerGuy Harris <guy@alum.mit.edu>
Tue, 21 Nov 2000 23:54:10 +0000 (23:54 -0000)
commitfcd119d834023122b8c1f37586acb2510743086f
treeac14477f29c8c86817ad58caf63b37cb7c5895b4
parentf8d8ac9df63e9566582aca55fd658252475bf5b2
Add a "color.h" file that declares a nominally-toolkit-independent
"color_t" structure to store color values (although currently it has all
the same fields that a GdkColor has; its currently advantage is that you
don't have to include any GTK/GDK stuff to declare it).

Add routines in the "gtk" directory to convert between "color_t" and
GdkColor values.

Define, in "prefs.h", all colors as "color_t" values rather than
GdkColor values.  "prefs.h" now no longer needs to include <gtk/gtk.h>,
so don't include it.

svn path=/trunk/; revision=2692
13 files changed:
Makefile.am
color.h [new file with mode: 0644]
file.c
gtk/Makefile.am
gtk/Makefile.nmake
gtk/color_utils.c [new file with mode: 0644]
gtk/color_utils.h [new file with mode: 0644]
gtk/follow_dlg.c
gtk/gui_prefs.c
gtk/main.c
gtk/print_dlg.c
gtk/stream_prefs.c
prefs.h