Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal make-tapreg-dotc register.h tap-dcerpcstat.c
guy 2003/04/22 22:51:01 CDT
Modified files:
. make-tapreg-dotc register.h
tap-dcerpcstat.c tap-iostat.c
tap-iousers.c tap-mgcpstat.c
tap-protocolinfo.c tap-protohierstat.c
tap-rpcprogs.c tap-rpcstat.c
tap-smbstat.c tethereal.c
Log:
Allow taps to have menu item registration routines; the menu item
registration routines, for taps with menu items (taps that can be run
from the "Tools->Statistics" menu), create the menu item for the tap.
"make-tapreg-dotc" constructs a "register_all_tap_menus()" function that
calls all the tap menu item registration routines it finds, and Ethereal
calls that routine after the main window has been constructed (so that
the main menu exists, as the menu items are added to it). (Tethereal
doesn't call it.)
Get rid of the "menu" and "menu_init" arguments to
"register_ethereal_tap"; the menu item is registered in the tap's menu
item registration routine, not in its main registration routine.
Have the RTP GUI tap register its menu item that way, rather than by
having it compiled into "gtk/menu.c". (We're not ready yet to have taps
whose menu items are under a submenu register themselves in that
fashion, as "register_tap_menu_item()" can't yet create submenus.)
Revision Changes Path
1.2 +19 -0 ethereal/make-tapreg-dotc
1.5 +4 -4 ethereal/register.h
1.4 +2 -2 ethereal/tap-dcerpcstat.c
1.5 +2 -2 ethereal/tap-iostat.c
1.5 +2 -2 ethereal/tap-iousers.c
1.5 +2 -2 ethereal/tap-mgcpstat.c
1.2 +2 -2 ethereal/tap-protocolinfo.c
1.2 +2 -2 ethereal/tap-protohierstat.c
1.4 +2 -2 ethereal/tap-rpcprogs.c
1.7 +2 -2 ethereal/tap-rpcstat.c
1.2 +2 -2 ethereal/tap-smbstat.c
1.181 +5 -2 ethereal/tethereal.c