Wireshark-commits: [Wireshark-commits] rev 43517: /trunk/ui/gtk/ /trunk/ui/gtk/: capture_dlg.c capt
Date: Thu, 28 Jun 2012 08:13:21 GMT
http://anonsvn.wireshark.org/viewvc/viewvc.cgi?view=rev&revision=43517

User: guy
Date: 2012/06/28 01:13 AM

Log:
 Detangle the code that manages the interface list on the welcome screen:
 
     fill_capture_box():
 
 	if there are interfaces on which to capture, constructs the
 	interface list, otherwise destroys the interface list and puts
 	up a message.
 
     update_capture_box():
 
 	updates the interface list to reflect current reality.
 
     welcome_if_panel_reload():
 
 	if there is an interface list, and if there are interfaces on
 	which to capture (so that we still want that list), updates the
 	list by calling update_capture_box(), otherwise creates or
 	destroys it by calling fill_capture_box() (as either it doesn't
 	exist but now needs to or does exist but needs to go away).
 
 Have refresh_local_interface_lists(), which re-fetches the list of local
 interfaces and updates every interface list that includes local
 interfaces, and refresh_non_local_interface_lists(), which only updates
 interface lists that (also) include interfaces other than local
 interfaces (such as pipes and remote interfaces).  Call them in the
 apprpriate places (if we know the list of local interfaces has been
 updated, call refresh_local_interface_lists(), otherwise, if we know
 interfaces other than local interfaces have been added or removed, call
 refresh_non_local_interface_lists()).
 
 Don't have any routine that updates the interface list for one widget
 update the interface list for any other widget; leave the global
 updating of interface lists up to refresh_local_interface_lists() and
 refresh_non_local_interface_lists() - only call one of them if any
 interface lists are to be updated.

Directory: /trunk/ui/gtk/
  Changes    Path                Action
  +30 -57    capture_dlg.c       Modified
  +0 -3      capture_dlg.h       Modified
  +2 -0      capture_if_dlg.c    Modified
  +41 -16    main.c              Modified
  +15 -2     main.h              Modified
  +1 -1      main_menubar.c      Modified
  +40 -51    main_welcome.c      Modified
  +3 -2      prefs_capture.c     Modified