it's a pain to have to keep typing the same filter over and over again
if you're trying multiple captures of the same type of traffic. At
least with GTK+ 2.x, the text of the filter is selected, so if you start
typing a new filter it'll replace the default filter.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@12212
f5534014-38df-0310-8fa8-
9805f1628bb7
filter_te = GTK_COMBO(filter_cm)->entry;
gtk_combo_set_popdown_strings(GTK_COMBO(filter_cm), filter_list);
- gtk_entry_set_text(GTK_ENTRY(filter_te), ""); /* Default capture filter is empty */
+ if (cfile.cfilter)
+ gtk_entry_set_text(GTK_ENTRY(filter_te), cfile.cfilter);
gtk_tooltips_set_tip(tooltips, filter_te,
"Enter a capture filter to reduce the amount of packets to be captured. "
"See \"Capture Filters\" in the online help for further information how to use it.",