Wireshark-bugs: [Wireshark-bugs] [Bug 1979] New: When editing a coloring-rule, the filter-name t
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1979
Summary: When editing a coloring-rule, the filter-name text color
stays black
Product: Wireshark
Version: SVN
Platform: PC
OS/Version: Linux
Status: NEW
Severity: Minor
Priority: Low
Component: Wireshark
AssignedTo: wireshark-bugs@xxxxxxxxxxxxx
ReportedBy: sake@xxxxxxxxxx
Build Information:
wireshark 0.99.7 (SVN Rev 23406)
Copyright 1998-2007 Gerald Combs <gerald@xxxxxxxxxxxxx> and contributors.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Compiled with GTK+ 1.2.10, with GLib 1.2.10, with libpcap 0.9.5, with libz
1.2.3, without libpcre, without SMI, without ADNS, without Lua, with GnuTLS
1.4.5, with Gcrypt 1.2.4, with MIT Kerberos, without PortAudio, without
AirPcap.
NOTE: this build doesn't support the "matches" operator for Wireshark filter
syntax.
Running on Linux 2.6.21-1.3194.fc7, with libpcap version 0.9.5.
Built using gcc 4.1.2 20070502 (Red Hat 4.1.2-12).
--
The textbox "filt_name_entry" is populated with the correct colors in
edit_color_filter_dialog() [gtk/color_edit_dlg.c] by the following code:
style = gtk_style_copy(gtk_widget_get_style(filt_name_entry));
color_t_to_gdkcolor(&style->base[GTK_STATE_NORMAL], &colorf->bg_color);
color_t_to_gdkcolor(&style->text[GTK_STATE_NORMAL], &colorf->fg_color);
gtk_widget_set_style(filt_name_entry, style);
On GTK2 this works fine, but now that I use GTK1 (while writing a patch to
allow for color-filters to dis/enabled) the text-color (fg_color) stays black
and doesn't get set to the color defined in the filter.
Is this a bug in GTK+ 1.2.10? Or does the Wireshark code needs to be different
for GTK1 vs GTK2 in regards to setting text-colors?
(If someone has a link to a proper GTK1 reference site I'd be very pleased to
hear it, as I can't seem to find information on how to set text to
strikethrough in GTK1. And I need that for the patcth I'm writing)
Cheers,
Sake
--
Configure bugmail: http://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.