aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2009-09-22 18:51:33 +0000
committerAnders Broman <anders.broman@ericsson.com>2009-09-22 18:51:33 +0000
commitffcaf32074a632873b14e3ddb52e9cb02dfb4233 (patch)
tree4ebf2b01c8aed11bc303cf0eb29de978fe5b2a5f
parent0ee2b7754d73a0ab317a9d94e3ac1a13073f7f0d (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.c5
-rw-r--r--gtk/new_packet_list.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/file.c b/file.c
index 3d5d69938c..343fec8d8f 100644
--- a/file.c
+++ b/file.c
@@ -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