diff options
author | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-06-26 17:15:25 +0000 |
---|---|---|
committer | Jakub Zawadzki <darkjames-ws@darkjames.pl> | 2013-06-26 17:15:25 +0000 |
commit | 0426c05d4977abf276daf664412eebb7dd42d561 (patch) | |
tree | 2a07a68ea2760c677627eef5104b9e7ff9974452 /ui/gtk/bytes_view.c | |
parent | faecb6b9a83f49d0b26420dcff26611f210f4a9f (diff) | |
download | wireshark-0426c05d4977abf276daf664412eebb7dd42d561.tar.gz |
packet-editor: Allow focus for byteview, it should fix problems with field hexeditor not getting key-press-event.
Generally it should be also safe for builds without packet-editor, just in case ifdef it.
svn path=/trunk/; revision=50172
Diffstat (limited to 'ui/gtk/bytes_view.c')
-rw-r--r-- | ui/gtk/bytes_view.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/gtk/bytes_view.c b/ui/gtk/bytes_view.c index 89edbb8930..76969b9a2f 100644 --- a/ui/gtk/bytes_view.c +++ b/ui/gtk/bytes_view.c @@ -101,6 +101,9 @@ static void bytes_view_adjustment_set(BytesView *); static void bytes_view_init(BytesView *bv) { +#ifdef WANT_PACKET_EDITOR + gtk_widget_set_can_focus(GTK_WIDGET(bv), TRUE); +#endif bv->context = NULL; bv->encoding = PACKET_CHAR_ENC_CHAR_ASCII; |