Enable and disable toolbar buttons when having packets.
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 27 Aug 2011 09:22:22 +0000 (09:22 +0000)
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 27 Aug 2011 09:22:22 +0000 (09:22 +0000)
Set correct sensitivity for Go -> Go to Packet.

This fixes bug 6268.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38749 f5534014-38df-0310-8fa8-9805f1628bb7

gtk/main_menubar.c

index 819f97ea8afde1dc032ebf1cd5738442c8a6edd0..22fe8b2a57e7b0cb1f0a18d0d9f78bd2ca19f33d 100644 (file)
@@ -4652,7 +4652,7 @@ set_menus_for_captured_packets(gboolean have_captured_packets)
                          have_captured_packets);
     set_menu_sensitivity(ui_manager_main_menubar, "/Menubar/ViewMenu/NormalSize",
                          have_captured_packets);
-    set_menu_sensitivity(ui_manager_main_menubar, "/Menubar/GoMenu/GotoCorrespondingPacket",
+    set_menu_sensitivity(ui_manager_main_menubar, "/Menubar/GoMenu/Goto",
                          have_captured_packets);
     set_menu_sensitivity(ui_manager_main_menubar, "/Menubar/GoMenu/PreviousPacket",
                          have_captured_packets);
@@ -4670,6 +4670,7 @@ set_menus_for_captured_packets(gboolean have_captured_packets)
                          have_captured_packets);
     set_menu_sensitivity(ui_manager_main_menubar, "/Menubar/StatisticsMenu/ProtocolHierarchy",
                          have_captured_packets);
+    set_toolbar_for_captured_packets(have_captured_packets);
 }