- menu.h commited by mistake
- new_packet_list.c missing
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35719
f5534014-38df-0310-8fa8-
9805f1628bb7
#endif /* __cplusplus */
/*#define MAIN_MENU_USE_UIMANAGER 1 */
-#define MAIN_MENU_USE_UIMANAGER 1
/* Add a new recent capture filename to the "Recent Files" submenu
(duplicates will be ignored) */
gtk_notebook_remove_page(GTK_NOTEBOOK(byte_nb_ptr_gbl), 0);
cf_select_packet(&cfile, row);
- gtk_widget_grab_focus(packetlist->view);
-
+ /* If searching the tree, set the focus there; otherwise, focus on the packet list */
+ if (cfile.search_in_progress && (cfile.decode_data || cfile.decode_data)) {
+ gtk_widget_grab_focus(tree_view_gbl);
+ } else {
+ gtk_widget_grab_focus(packetlist->view);
+ }
+
/* Add newly selected frame to packet history (breadcrumbs) */
packet_history_add(row);
}