This is a static archive of our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

1.6.1 Display filter Expression Dialog Box Error and solution :-)

1
1

Hello there,

I'm glad to say that I 've come up with a small contribution to Wireshark. Display Filter dialog box is created each time whenever the Expression button in the filter tool bar is pressed. Likewise it can create n times for n clicks.

This question is marked "community wiki".

asked 18 Oct '11, 22:09

Terrestrial%20shark's gravatar image

Terrestrial ...
96212829
accept rate: 42%

edited 18 Oct '11, 22:15


2 Answers:

1

//global section

static GtkWidget *window= NULL;

..........

..........

..........

GtkWidget *

dfilter_expr_dlg_new(GtkWidget *filter_te) { if (window != NULL) {

    /* There's already an "Expression" dialog box; reactivate it. */
    reactivate_window(window);
    return window;
}
else
{ 
       //keep the code that is present inside dfilter_expr_dlg_new function in this else part
    }
}

answered 18 Oct '11, 22:14

Terrestrial%20shark's gravatar image

Terrestrial ...
96212829
accept rate: 42%

edited 18 Oct '11, 22:22

0

The way to contribute code to wireshark is to create a "bug"-report on https://bugs.wireshark.org/ and attach the output of "svn diff". This way we don't lose track of all submissions.

answered 20 Oct '11, 01:17

SYN-bit's gravatar image

SYN-bit ♦♦
17.1k957245
accept rate: 20%

Thanks :-) bug 6472.

(20 Oct '11, 02:22) Terrestrial ...