Ensure we always update the display filter when changing profile.
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 31 Aug 2010 07:53:51 +0000 (07:53 +0000)
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 31 Aug 2010 07:53:51 +0000 (07:53 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34030 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/macros_dlg.c
gtk/macros_dlg.h
gtk/main.c

index 2a1b4d2205c095fafdb52fb0bf0d62d7b05ea44a..d7d42c314d8fb1c72edc5c9cbfafb773b4cd1726 100644 (file)
@@ -36,7 +36,7 @@
 #include "gtk/macros_dlg.h"
 #include "gtk/gtkglobals.h"
 
-static void macros_post_update(void) {
+void macros_post_update(void) {
        g_free (cfile.dfilter);
        cfile.dfilter = NULL;
        g_signal_emit_by_name(main_display_filter_widget, "changed");
index 24e420ea50be0182b67cceed4c3e9e05fdaa3773..73e11042212e3ae310a6217ec6d91950d9d20295 100644 (file)
@@ -24,6 +24,7 @@
 #ifndef __MACROS_DLG_H__
 #define __MACROS_DLG_H__
 
+void macros_post_update(void);
 void macros_init (void);
 void macros_dialog_cb(GtkWidget*, gpointer);
 
index f80ca3538f591ce471ec4533769b64955db94f53..4d5bb134c3f09490a6cc2330806d604663373127 100644 (file)
@@ -3765,6 +3765,7 @@ void change_configuration_profile (const gchar *profile_name)
 
    prefs_to_capture_opts();
    prefs_apply_all();
+   macros_post_update();
 
    /* Update window view and redraw the toolbar */
    update_main_window_title();