diff options
author | Anders Broman <anders.broman@ericsson.com> | 2009-09-22 18:51:33 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2009-09-22 18:51:33 +0000 |
commit | ffcaf32074a632873b14e3ddb52e9cb02dfb4233 (patch) | |
tree | 4ebf2b01c8aed11bc303cf0eb29de978fe5b2a5f | |
parent | 0ee2b7754d73a0ab317a9d94e3ac1a13073f7f0d (diff) |
Select the first packet when doing a live capture. In the old packet list this is automatically done as the clist emits a selct-row signal.
Seting focus in new_packet_list_moveto_end() seems also to be needed to make it work properly I'm not 100% sure if it should be done differently.
svn path=/trunk/; revision=30074
-rw-r--r-- | file.c | 5 | ||||
-rw-r--r-- | gtk/new_packet_list.c | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -848,6 +848,11 @@ cf_continue_tail(capture_file *cf, volatile int to_read, int *err) #ifdef NEW_PACKET_LIST new_packet_list_thaw(); + /* With the new packet list the first packet + * isn't automatically selected. + */ + if(!cf->current_frame) + new_packet_list_select_first_row(); #else /* XXX - this causes "flickering" of the list */ packet_list_thaw(); diff --git a/gtk/new_packet_list.c b/gtk/new_packet_list.c index 9a1733b4d0..dc80306462 100644 --- a/gtk/new_packet_list.c +++ b/gtk/new_packet_list.c @@ -462,6 +462,7 @@ new_packet_list_moveto_end(void) 0); /* The horizontal alignment of the column */ gtk_tree_path_free(path); + gtk_widget_grab_focus(packetlist->view); } gboolean |