diff options
author | Stig Bjørlykke <stig@bjorlykke.org> | 2010-03-04 12:50:18 +0000 |
---|---|---|
committer | Stig Bjørlykke <stig@bjorlykke.org> | 2010-03-04 12:50:18 +0000 |
commit | 2f8830b4d03bb3f0ae67ba22896b1ac62c133428 (patch) | |
tree | 96338cd40e1cefa0587cb4b5cc2c4f5bc6eab668 /gtk | |
parent | f05fb51aba628102f83cd814d04f763643baab3e (diff) | |
download | wireshark-2f8830b4d03bb3f0ae67ba22896b1ac62c133428.tar.gz |
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.
svn path=/trunk/; revision=32112
Diffstat (limited to 'gtk')
-rw-r--r-- | gtk/uat_gui.c | 10 |
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); |