Fix the wireless settings button for AirPCap devices in the
[obnox/wireshark/wip.git] / gtk / follow_udp.c
index 11950282918b85e51dfbe5fe2822c8e78f2ae752..30cfda4c10107edaeb0145d76c5b9e810ff10652 100644 (file)
 #include <epan/ipproto.h>
 #include <epan/strutil.h>
 #include <epan/tap.h>
+#include <epan/tvbuff-int.h>
 
 #include <../simple_dialog.h>
 
+#include "gtkglobals.h"
 #include "gtk/follow_stream.h"
 #include <gtk/keys.h>
 #include <gtk/main.h>
@@ -85,9 +87,9 @@ udp_queue_packet_data(void *tapdata, packet_info *pinfo,
    a dissection routine on belongs (this might be the most recently
    selected packet, or it might be the last packet in the file). */
 void
-follow_udp_stream_cb(GtkWidget *w, gpointer data _U_)
+follow_udp_stream_cb(GtkWidget *w _U_, gpointer data _U_)
 {
-       GtkWidget *filter_te;
+       GtkWidget *filter_te, *filter_cm;
        gchar *follow_filter;
        const gchar *previous_filter;
        int filter_out_filter_len, previous_filter_len;
@@ -124,7 +126,8 @@ follow_udp_stream_cb(GtkWidget *w, gpointer data _U_)
                }
 
        /* Set the display filter entry accordingly */
-       filter_te = g_object_get_data(G_OBJECT(w), E_DFILTER_TE_KEY);
+       filter_cm = g_object_get_data(G_OBJECT(top_level), E_DFILTER_CM_KEY);
+       filter_te = gtk_bin_get_child(GTK_BIN(filter_cm));
 
        /* needed in follow_filter_out_stream(), is there a better way? */
        follow_info->filter_te = filter_te;