Ethereal-cvs: [Ethereal-cvs] r11497 - trunk/gtk: trunk/gtk/color_dlg.c trunk/gtk/color_utils.c

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

Date: Fri, 23 Jul 2004 19:35:13 -0500 (CDT)
Author: guy
Date: Fri Jul 23 19:35:13 2004
New Revision: 11497

Modified:
   trunk/gtk/color_dlg.c
   trunk/gtk/color_filters.c
   trunk/gtk/color_utils.c
   trunk/gtk/color_utils.h
   trunk/gtk/colors.c
   trunk/gtk/colors.h
   trunk/gtk/follow_dlg.c
   trunk/gtk/main.c
   trunk/gtk/packet_list.c
   trunk/gtk/stream_prefs.c
Log:
Have "gtk/color_utils.c" contain routines with toolkit-independent APIs,
but toolkit-dependent implementations, for manipulating colors, and have
"gtk/color_utils.h" declare them (the header file should eventually be
moved to the top-level directory).  Move the routines to convert between
GdkColor and color_t out of there into "colors.c", and move their
declarations into "colors.h", as their APIs are toolkit-dependent.

Have the first such routine be a "create_color()" routine, which takes
RGB values and initializes a "color_t", including doing any
toolkit-dependent work necessary for that; use that in the
"gtk/color_filters.c" code (the goal is to remove as many of the toolkit
dependencies as possible from that code, and move it to the top-level
directory).