diff options
author | oabad <oabad@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-11-03 17:38:45 +0000 |
---|---|---|
committer | oabad <oabad@f5534014-38df-0310-8fa8-9805f1628bb7> | 2002-11-03 17:38:45 +0000 |
commit | e7e9fc4599a73a917abf4d00595371811f4e1c0e (patch) | |
tree | e205dc0b1cb685304fd20edb3ebd398884c30ba3 /gtk/colors.c | |
parent | e736c33a5c88c48f156b66539aa1c9677d282952 (diff) |
Merge gtk and gtk2 directories.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@6552 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/colors.c')
-rw-r--r-- | gtk/colors.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gtk/colors.c b/gtk/colors.c index 872babc27d..fe4f5661c5 100644 --- a/gtk/colors.c +++ b/gtk/colors.c @@ -1,7 +1,7 @@ /* colors.c * Definitions for color structures and routines * - * $Id: colors.c,v 1.25 2002/09/23 19:09:49 oabad Exp $ + * $Id: colors.c,v 1.26 2002/11/03 17:38:32 oabad Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -40,6 +40,7 @@ #include "file.h" #include <epan/dfilter/dfilter.h> #include "simple_dialog.h" +#include "gtkglobals.h" extern capture_file cf; @@ -88,12 +89,14 @@ new_color_filter(gchar *name, /* The name of the filter to create */ gchar *filter_string) /* The string representing the filter */ { color_filter_t *colorf; + GtkStyle *style; colorf = (color_filter_t *)g_malloc(sizeof (color_filter_t)); colorf->filter_name = g_strdup(name); colorf->filter_text = g_strdup(filter_string); - gdkcolor_to_color_t(&colorf->bg_color, &WHITE); - gdkcolor_to_color_t(&colorf->fg_color, &BLACK); + style = gtk_widget_get_style(packet_list); + gdkcolor_to_color_t(&colorf->bg_color, &style->base[GTK_STATE_NORMAL]); + gdkcolor_to_color_t(&colorf->fg_color, &style->text[GTK_STATE_NORMAL]); colorf->c_colorfilter = NULL; colorf->edit_dialog = NULL; filter_list = g_slist_append(filter_list, colorf); |