Rename "create_color()" to "initialize_color()", as that reflects a bit
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 24 Jul 2004 02:08:42 +0000 (02:08 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 24 Jul 2004 02:08:42 +0000 (02:08 +0000)
better what it actually does.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11502 f5534014-38df-0310-8fa8-9805f1628bb7

color.h
color_filters.c
gtk/color_utils.c

diff --git a/color.h b/color.h
index 043f3b07d80d12382e73edeaa7ffccbef2f228db..449eddcea52404994d0cacff3a53f44d1e7a7315 100644 (file)
--- a/color.h
+++ b/color.h
@@ -43,8 +43,8 @@ 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.
+/** Initialize a color with R, G, and B values, including any toolkit-dependent
+ ** work that needs to be done.
  *
  * @param color the color_t to be filled
  * @param red the red value for the color
@@ -53,7 +53,7 @@ typedef struct {
  * @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);
+gboolean initialize_color(color_t *color, guint16 red, guint16 green, guint16 blue);
 
 /* Data for a color filter. */
 typedef struct _color_filter {
index ea47340281812f6f530fc106ceb8d72c6cf89b99..891710347a9f4b132bf9f791fdbc6450450bb184 100644 (file)
@@ -256,7 +256,7 @@ read_filters_file(FILE *f, gpointer arg)
                                continue;
                        }
 
-                       if (!create_color(&fg_color, fg_r, fg_g, fg_b)) {
+                       if (!initialize_color(&fg_color, fg_r, fg_g, fg_b)) {
                                /* oops */
                                simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
                                    "Could not allocate foreground color "
@@ -265,7 +265,7 @@ read_filters_file(FILE *f, gpointer arg)
                                skip_end_of_line = TRUE;
                                continue;
                        }
-                       if (!create_color(&bg_color, bg_r, bg_g, bg_b)) {
+                       if (!initialize_color(&bg_color, bg_r, bg_g, bg_b)) {
                                /* oops */
                                simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
                                    "Could not allocate background color "
index 8159e57a48ff6ca7d22460778fd55b64532b6ef0..8f95c820f633ee45fe4e33c0b4063479c5ead49a 100644 (file)
 #include "colors.h"
 
 /*
- * Create a color from R, G, and B values, and do whatever toolkit-dependent
- * work needs to be done.
+ * Initialize a color with R, G, and B values, including any toolkit-dependent
+ * work that needs to be done.
  * Returns TRUE if it succeeds, FALSE if it fails.
  */
 gboolean
-create_color(color_t *color, guint16 red, guint16 green, guint16 blue)
+initialize_color(color_t *color, guint16 red, guint16 green, guint16 blue)
 {
        GdkColor gdk_color;