diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-07-24 00:49:19 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-07-24 00:49:19 +0000 |
commit | d5425a709a89d182645944ac72f64d579858bdf3 (patch) | |
tree | 9e10671e06966ae72acfdf904307564dce9cb8e2 | |
parent | 34de3c15d994d65a99b65d0dd55b0e2208685b3b (diff) |
Move the declaration of "create_color()" up to "color.h", so it's
declared in a toolkit-independent header file. Get rid of
"gtk/color_utils.h", as there's nothing left in it.
svn path=/trunk/; revision=11498
-rw-r--r-- | color.h | 12 | ||||
-rw-r--r-- | gtk/Makefile.am | 1 | ||||
-rw-r--r-- | gtk/color_filters.c | 1 | ||||
-rw-r--r-- | gtk/color_utils.c | 2 | ||||
-rw-r--r-- | gtk/color_utils.h | 45 |
5 files changed, 13 insertions, 48 deletions
@@ -44,6 +44,18 @@ typedef struct { guint16 blue; } color_t; +/** Create a color from R, G, and B values, and do whatever toolkit-dependent + ** work needs to be done. + * + * @param color the color_t to be filled + * @param red the red value for the color + * @param green the green value for the color + * @param blue the blue value for the color + * @param source the GdkColor to be filled + * @return TRUE if it succeeds, FALSE if it fails + */ +gboolean create_color(color_t *color, guint16 red, guint16 green, guint16 blue); + /* Data for a color filter. */ typedef struct _color_filter { gchar *filter_name; /* name of the filter */ diff --git a/gtk/Makefile.am b/gtk/Makefile.am index 472681a15f..7a1bc0e6f8 100644 --- a/gtk/Makefile.am +++ b/gtk/Makefile.am @@ -39,7 +39,6 @@ noinst_HEADERS = \ capture_prefs.h \ color_dlg.h \ color_filters.h \ - color_utils.h \ colors.h \ column_prefs.h \ compat_macros.h \ diff --git a/gtk/color_filters.c b/gtk/color_filters.c index f36852ac0c..be02a7cdd4 100644 --- a/gtk/color_filters.c +++ b/gtk/color_filters.c @@ -38,7 +38,6 @@ #include "color.h" #include "colors.h" #include "color_filters.h" -#include "color_utils.h" #include "color_dlg.h" #include "file.h" #include <epan/dfilter/dfilter.h> diff --git a/gtk/color_utils.c b/gtk/color_utils.c index ae72adfa91..8159e57a48 100644 --- a/gtk/color_utils.c +++ b/gtk/color_utils.c @@ -30,7 +30,7 @@ #include "color.h" -#include "color_utils.h" +#include "colors.h" /* * Create a color from R, G, and B values, and do whatever toolkit-dependent diff --git a/gtk/color_utils.h b/gtk/color_utils.h deleted file mode 100644 index 28ebbf689a..0000000000 --- a/gtk/color_utils.h +++ /dev/null @@ -1,45 +0,0 @@ -/* color_utils.h - * Declarations of utilities for converting between "toolkit-independent" - * and GDK notions of color - * - * $Id$ - * - * Ethereal - Network traffic analyzer - * By Gerald Combs <gerald@ethereal.com> - * Copyright 1998 Gerald Combs - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of the GNU General Public License - * as published by the Free Software Foundation; either version 2 - * of the License, or (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - */ - -#ifndef __COLOR_UTILS_H__ -#define __COLOR_UTILS_H__ - -/** @file - * Toolkit-dependent implementations of routines to handle colors. - */ - -/** Create a color from R, G, and B values, and do whatever toolkit-dependent - ** work needs to be done. - * - * @param color the color_t to be filled - * @param red the red value for the color - * @param green the green value for the color - * @param blue the blue value for the color - * @param source the GdkColor to be filled - * @return TRUE if it succeeds, FALSE if it fails - */ -gboolean create_color(color_t *color, guint16 red, guint16 green, guint16 blue); - -#endif |