diff options
author | Michael Mann <mmann78@netscape.net> | 2015-12-22 15:07:00 -0500 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2015-12-28 18:33:41 +0000 |
commit | 5e4bbcda9839d9fd4480db8c4f9386ff388d166c (patch) | |
tree | 9801cea61222e0e9e3f8c57f4574ddb6bab075c7 /ui/gtk/funnel_stat.c | |
parent | c752daf4b8816d809a92894155ce8de1b24613c7 (diff) |
Refactor GUI dependencies out of color_filters.[ch] and move it to epan directory.
This also moved color.h into color_filters.h
Change-Id: Ic19e27aa1b3ec67e764aa7ee8bbef7b1187bb12e
Reviewed-on: https://code.wireshark.org/review/12831
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'ui/gtk/funnel_stat.c')
-rw-r--r-- | ui/gtk/funnel_stat.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ui/gtk/funnel_stat.c b/ui/gtk/funnel_stat.c index 96781a11f2..f7f15eb38a 100644 --- a/ui/gtk/funnel_stat.c +++ b/ui/gtk/funnel_stat.c @@ -44,7 +44,8 @@ #include <epan/funnel.h> #include "ui/progress_dlg.h" -#include "../color_filters.h" +#include "ui/simple_dialog.h" +#include <epan/color_filters.h> #include "ui/gtk/gui_utils.h" #include "ui/gtk/dlg_utils.h" @@ -465,7 +466,11 @@ static void funnel_set_filter(funnel_ops_id_t *ops_id _U_, const char* filter_st } static void funnel_set_color_filter_slot(guint8 filt_nr, const gchar* filter_string) { - color_filters_set_tmp(filt_nr, (gchar *)filter_string, FALSE); + gchar *err_msg = NULL; + if (!color_filters_set_tmp(filt_nr, (gchar *)filter_string, FALSE, &err_msg)) { + simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK, "%s", err_msg); + g_free(err_msg); + } } static void funnel_apply_filter(funnel_ops_id_t *ops_id _U_) { |