aboutsummaryrefslogtreecommitdiffstats
path: root/gtk/colors.c
diff options
context:
space:
mode:
authorOlivier Abad <oabad@noos.fr>2002-11-03 17:38:45 +0000
committerOlivier Abad <oabad@noos.fr>2002-11-03 17:38:45 +0000
commit05ef1fc475a3e569a641424a75b81f74d90ba8ca (patch)
treee205dc0b1cb685304fd20edb3ebd398884c30ba3 /gtk/colors.c
parentae2198ea4ecf9896ef2dc3ed54526fbfbe764077 (diff)
Merge gtk and gtk2 directories.
svn path=/trunk/; revision=6552
Diffstat (limited to 'gtk/colors.c')
-rw-r--r--gtk/colors.c9
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);