diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-05-13 13:20:33 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-05-13 20:21:14 +0000 |
commit | afad14dcfec28d937f5c375831af8e2d886e819f (patch) | |
tree | 4c0dc805b425c13394e71ec9e7a5e42986c711b8 /epan/stat_tap_ui.c | |
parent | 7d1c534ac9b596b283bed2caaf7aad59625159f2 (diff) |
Get rid of some GTK+-only stuff.
Change-Id: I85806476246a567f747e3911e3d15716e9cfe06b
Reviewed-on: https://code.wireshark.org/review/27514
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/stat_tap_ui.c')
-rw-r--r-- | epan/stat_tap_ui.c | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/epan/stat_tap_ui.c b/epan/stat_tap_ui.c index d4627c1582..a7141335bd 100644 --- a/epan/stat_tap_ui.c +++ b/epan/stat_tap_ui.c @@ -172,7 +172,7 @@ void stat_tap_get_filter(stat_tap_table_ui* new_stat, const char *opt_arg, const } stat_tap_table* stat_tap_init_table(const char *name, int num_fields, int num_elements, - const char *filter_string, stat_tap_gui_init_cb gui_callback, void* gui_data) + const char *filter_string) { stat_tap_table* new_table = g_new0(stat_tap_table, 1); @@ -182,9 +182,6 @@ stat_tap_table* stat_tap_init_table(const char *name, int num_fields, int num_el new_table->filter_string = filter_string; new_table->elements = g_new0(stat_tap_table_item_type*, num_elements); - if (gui_callback) - gui_callback(new_table, gui_data); - return new_table; } @@ -237,7 +234,7 @@ void stat_tap_set_field_data(stat_tap_table *stat_table, guint table_index, guin field_value[field_index] = *field_data; } -void reset_stat_table(stat_tap_table_ui* new_stat, stat_tap_gui_reset_cb gui_callback, void *callback_data) +void reset_stat_table(stat_tap_table_ui* new_stat) { guint i = 0; stat_tap_table *stat_table; @@ -246,16 +243,12 @@ void reset_stat_table(stat_tap_table_ui* new_stat, stat_tap_gui_reset_cb gui_cal { stat_table = g_array_index(new_stat->tables, stat_tap_table*, i); - /* Give GUI the first crack at it before we clean up */ - if (gui_callback) - gui_callback(stat_table, callback_data); - if (new_stat->stat_tap_reset_table_cb) new_stat->stat_tap_reset_table_cb(stat_table); } } -void free_stat_tables(stat_tap_table_ui* new_stat, stat_tap_gui_free_cb gui_callback, void *callback_data) +void free_stat_tables(stat_tap_table_ui* new_stat) { guint i = 0, element, field_index; stat_tap_table *stat_table; @@ -265,10 +258,6 @@ void free_stat_tables(stat_tap_table_ui* new_stat, stat_tap_gui_free_cb gui_call { stat_table = g_array_index(new_stat->tables, stat_tap_table*, i); - /* Give GUI the first crack at it before we clean up */ - if (gui_callback) - gui_callback(stat_table, callback_data); - for (element = 0; element < stat_table->num_elements; element++) { for (field_index = 0; field_index < stat_table->num_fields; field_index++) |