aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsake <sake@f5534014-38df-0310-8fa8-9805f1628bb7>2008-11-17 23:03:58 +0000
committersake <sake@f5534014-38df-0310-8fa8-9805f1628bb7>2008-11-17 23:03:58 +0000
commit4801736675efc315b9ae5b84b224fad095bcd7ca (patch)
treef7c81362152ebda3b0daa344879ab7959c3e6765
parentddff183360226eb9387407b8216a8a6c6dcd4ee9 (diff)
Open the packet in a new window when it is double-clcked upon in the
packet-list. (as noted in bug 3059) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@26800 f5534014-38df-0310-8fa8-9805f1628bb7
-rw-r--r--gtk/main_packet_list.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/gtk/main_packet_list.c b/gtk/main_packet_list.c
index 22f7c3d6ae..1b756c3737 100644
--- a/gtk/main_packet_list.c
+++ b/gtk/main_packet_list.c
@@ -53,6 +53,7 @@
#include "gtk/main_menu.h"
#include "gtk/main_packet_list.h"
#include "gtk/main_statusbar.h"
+#include "gtk/packet_win.h"
#include "image/clist_ascend.xpm"
#include "image/clist_descend.xpm"
@@ -397,6 +398,14 @@ packet_list_button_pressed_cb(GtkWidget *w, GdkEvent *event, gpointer data _U_)
mark_frames_ready();
return TRUE;
}
+
+ if (event->type == GDK_2BUTTON_PRESS && event_button->button == 1 &&
+ event_button->window == GTK_CLIST(w)->clist_window ) {
+
+ new_window_cb(w);
+ return TRUE;
+ }
+
return FALSE;
}