summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorStig Bjørlykke <stig@bjorlykke.org>2008-05-01 18:03:46 +0000
committerStig Bjørlykke <stig@bjorlykke.org>2008-05-01 18:03:46 +0000
commit0a4ab4b039e6cc6f0f8032b2caec5754d3969042 (patch)
treeb58558061ea33c077438cafb65217e643db1307f /gtk
parentedfab8e2aa070fef490d9df7a0cde6cf3b0e2a49 (diff)
downloadwireshark-0a4ab4b039e6cc6f0f8032b2caec5754d3969042.tar.gz
Force foreground when background is forced in expert info dialogs.
svn path=/trunk/; revision=25211
Diffstat (limited to 'gtk')
-rw-r--r--gtk/expert_dlg.c1
-rw-r--r--gtk/main_proto_draw.c2
-rw-r--r--gtk/main_proto_draw.h1
3 files changed, 4 insertions, 0 deletions
diff --git a/gtk/expert_dlg.c b/gtk/expert_dlg.c
index 7d0bcd3060..fa3e60c4de 100644
--- a/gtk/expert_dlg.c
+++ b/gtk/expert_dlg.c
@@ -241,6 +241,7 @@ expert_dlg_draw(void *data)
default:
g_assert_not_reached();
}
+ gtk_clist_set_foreground(etd->table, row, &expert_color_foreground);
}
gtk_clist_sort(etd->table);
diff --git a/gtk/main_proto_draw.c b/gtk/main_proto_draw.c
index 6125d6ea04..e2b3d711a6 100644
--- a/gtk/main_proto_draw.c
+++ b/gtk/main_proto_draw.c
@@ -1354,6 +1354,7 @@ GdkColor expert_color_chat = { 0, 0xcc00, 0xcc00, 0xe000 }; /* a pale bluegrey *
GdkColor expert_color_note = { 0, 0xa000, 0xff00, 0xff00 }; /* a bright turquoise */
GdkColor expert_color_warn = { 0, 0xff00, 0xff00, 0 }; /* yellow */
GdkColor expert_color_error = { 0, 0xff00, 0x5c00, 0x5c00 }; /* pale red */
+GdkColor expert_color_foreground = { 0, 0x0000, 0x0000, 0x0000 }; /* black */
GdkColor hidden_proto_item = { 0, 0x4400, 0x4400, 0x4400 }; /* gray */
void proto_draw_colors_init(void)
@@ -1366,6 +1367,7 @@ void proto_draw_colors_init(void)
get_color(&expert_color_note);
get_color(&expert_color_warn);
get_color(&expert_color_error);
+ get_color(&expert_color_foreground);
get_color(&hidden_proto_item);
colors_ok = TRUE;
diff --git a/gtk/main_proto_draw.h b/gtk/main_proto_draw.h
index 91201e5c97..925bc5f081 100644
--- a/gtk/main_proto_draw.h
+++ b/gtk/main_proto_draw.h
@@ -230,5 +230,6 @@ extern GdkColor expert_color_chat;
extern GdkColor expert_color_note;
extern GdkColor expert_color_warn;
extern GdkColor expert_color_error;
+extern GdkColor expert_color_foreground;
#endif