aboutsummaryrefslogtreecommitdiffstats
path: root/gtk
diff options
context:
space:
mode:
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2010-03-04 12:50:18 +0000
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>2010-03-04 12:50:18 +0000
commit09926a5e7acfae9e6f688bd2128c3ff664451a91 (patch)
tree96338cd40e1cefa0587cb4b5cc2c4f5bc6eab668 /gtk
parentf6dc1193d50ec175ed08a6544ab2aff905981099 (diff)
From LEGO via bug 3459:
Add a callback to UAT to be called after the table has being updated, use it to renew the snmp_ue_cache. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32112 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk')
-rw-r--r--gtk/uat_gui.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/gtk/uat_gui.c b/gtk/uat_gui.c
index c4cc92352e..1cb65ff03e 100644
--- a/gtk/uat_gui.c
+++ b/gtk/uat_gui.c
@@ -680,8 +680,10 @@ static void uat_cancel_cb(GtkWidget *button _U_, gpointer u) {
static void uat_apply_cb(GtkButton *button _U_, gpointer u) {
uat_t* uat = u;
- if (uat->changed && cfile.state == FILE_READ_DONE)
- cf_reload(&cfile);
+ if (uat->changed) {
+ if (cfile.state == FILE_READ_DONE) cf_reload(&cfile);
+ if (uat->post_update_cb) uat->post_update_cb();
+ }
}
static void uat_ok_cb(GtkButton *button _U_, gpointer u) {
@@ -696,6 +698,10 @@ static void uat_ok_cb(GtkButton *button _U_, gpointer u) {
}
if (cfile.state == FILE_READ_DONE) cf_reload(&cfile);
+
+
+ if (uat->post_update_cb) uat->post_update_cb();
+
}
g_signal_handlers_disconnect_by_func(uat->rep->window, uat_window_delete_event_cb, uat);