aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--color.h12
-rw-r--r--gtk/Makefile.am1
-rw-r--r--gtk/color_filters.c1
-rw-r--r--gtk/color_utils.c2
-rw-r--r--gtk/color_utils.h45
5 files changed, 13 insertions, 48 deletions
diff --git a/color.h b/color.h
index bbc04bd388..56f9f1a909 100644
--- a/color.h
+++ b/color.h
@@ -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