*
* $Id$
*
- * Ethereal - Network traffic analyzer
- * By Gerald Combs <gerald@ethereal.com>
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* This program is free software; you can redistribute it and/or
#include <string.h>
+#include "color.h" /* to declare "color_t" */
+
#include "colors.h"
#include "simple_dialog.h"
#include "gtkglobals.h"
static GdkColormap* our_cmap = NULL;
GdkColor WHITE = { 0, 65535, 65535, 65535 };
+GdkColor LTGREY = { 0, 57343, 57343, 57343 };
GdkColor BLACK = { 0, 0, 0, 0 };
/* Initialize the colors */
}
return (gdk_colormap_alloc_color(our_cmap, new_color, FALSE, TRUE));
}
+
+void
+color_t_to_gdkcolor(GdkColor *target, color_t *source)
+{
+ target->pixel = source->pixel;
+ target->red = source->red;
+ target->green = source->green;
+ target->blue = source->blue;
+}
+
+void
+gdkcolor_to_color_t(color_t *target, GdkColor *source)
+{
+ target->pixel = source->pixel;
+ target->red = source->red;
+ target->green = source->green;
+ target->blue = source->blue;
+}