Wireshark-commits: [Wireshark-commits] rev 43515: /trunk/ui/gtk/ /trunk/ui/gtk/: capture_dlg.c capt

Date: Thu, 28 Jun 2012 01:54:43 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=43515

User: guy
Date: 2012/06/27 06:54 PM

Log:
 From Pontus Fuchs:
 
 	add a capture_dlg_refresh_if() routine to redraw the list of
 	interfaces in the Capture -> Interfaces dialog if the lsit of
 	known interfaces is updated, and have it do that not by
 	destroying and reconstructing the entire dialog box, but just by
 	destroying and reconstructing the table containing the
 	interfaces and their statistics.
 
 From me:
 
 	have a refresh_interfaces_cb() routine in ui/gtk/main.c that
 	scans the local interfaces and refreshes *all* the widgets that
 	have interface lists;
 
 	add a "Refresh Interfaces" item to the Capture menu that calls
 	that;
 
 	have the "Refresh" button in the "Manage Interfaces" window also
 	call that;
 
 	rename the Capture Options window routine dlg_window_present()
 	to capture_dlg_window_present() to make it clearer *which*
 	dialog it checks for;
 
 	fix Pontus' patch to call capture_stat_stop() *before* nulling
 	out the global pointer for the statistics cache - if it's called
 	*after* nulling it out, the argument passed to
 	capture_stat_stop() is null, and it doesn't kill off the dumpcap
 	gathering the statistics so they just pile up (and, at least on
 	OS X, chewing up BPF devices until you run out of BPF devices
 	that have the right ownership and permissions for dumpcap to use
 	as a normal user);
 
 	if refreshing the interfaces fails to get an interface list,
 	close the Capture Interfaces dialog.

Directory: /trunk/ui/gtk/
  Changes    Path                Action
  +9 -6      capture_dlg.c       Modified
  +4 -1      capture_dlg.h       Modified
  +132 -85   capture_if_dlg.c    Modified
  +23 -0     main.c              Modified
  +5 -0      main.h              Modified
  +5 -0      main_menubar.c      Modified
  +2 -2      main_welcome.c      Modified