summaryrefslogtreecommitdiff
path: root/ui/gtk/color_dlg.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2015-12-31 20:14:08 -0800
committerGuy Harris <guy@alum.mit.edu>2016-01-01 04:15:29 +0000
commitee9f102aa9ec36b28992512d840f971be4eba571 (patch)
tree8251e2c26ba9f6c3680633a03901dd386c3d349d /ui/gtk/color_dlg.c
parent93f9416c3660b87896e8b59a4d952fb851002bb5 (diff)
downloadwireshark-ee9f102aa9ec36b28992512d840f971be4eba571.tar.gz
No need for toolkit-dependent color initialization.
We're not allocating colors ourselves in GTK+ (and haven't been doing so since at least 1.12), and all color_t values are valid colors, so we don't need any toolkit-specific processing to fill in a color_t. While we're at it, catch read errors when reading color filter files. Change-Id: Ieb520d141cf15e371a31a01459d466c95ba2209b Reviewed-on: https://code.wireshark.org/review/12985 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/gtk/color_dlg.c')
-rw-r--r--ui/gtk/color_dlg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/gtk/color_dlg.c b/ui/gtk/color_dlg.c
index edb6c6da13..ed016b5ee0 100644
--- a/ui/gtk/color_dlg.c
+++ b/ui/gtk/color_dlg.c
@@ -963,7 +963,7 @@ color_clear_cmd(GtkWidget *widget)
}
/* try to read the global filters */
- if (!color_filters_read_globals(color_filters, &err_msg, initialize_color, color_filter_add_cb))
+ if (!color_filters_read_globals(color_filters, &err_msg, color_filter_add_cb))
{
simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", err_msg);
g_free(err_msg);