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
This commit is contained in:
Jakub Zawadzki 2013-06-26 17:15:25 +00:00
parent faecb6b9a8
commit 0426c05d49
1 changed files with 3 additions and 0 deletions

View File

@ -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;