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

adding new menu item

0

i'm trying to edit the GUI of wireshark to add new menu items to existing menu bar...but the code is huge and i dont know what files it is dependent on ..please kndly help me with which files to be edited

[email protected]gmail.com

asked 27 Feb '12, 02:22

sangmeshp's gravatar image

sangmeshp
367811
accept rate: 0%


One Answer:

1

It very much depends on which branch you're working with.

  • for 1.4, look in gtk/menu.c
  • for 1.6, look in gtk/menu.c, note there's a lot of UI_MANAGER stuff in there.
  • for trunk, look ui/gtk/ui/main-menubar-ui.xml (assuming you want your changes in the GTK+ interface)

There are other ways to add menus, like registering a statistics menu item.

answered 27 Feb '12, 04:16

Jaap's gravatar image

Jaap ♦
11.7k16101
accept rate: 14%

1

ui/gtk/ui/main-menubar-ui.xml isn't used you have to edit main_menubar.c or use the tap interface to add a custom menu.

(27 Feb '12, 08:43) Anders ♦