@@ -1235,7 +1235,7 @@ view_buffer_with_parent (windata_t *parent, PRN *prn,
12351235 }
12361236 }
12371237
1238- #ifndef GRETL_EDIT
1238+ #ifndef GRETL_EDIT
12391239 if (role == VIEW_PKG_CODE || role == VIEW_PKG_SAMPLE || role == VIEW_LOG ) {
12401240 create_source (vwin , hsize , vsize , FALSE);
12411241 } else if (role == EDIT_PKG_CODE || role == EDIT_PKG_SAMPLE ) {
@@ -1254,7 +1254,7 @@ view_buffer_with_parent (windata_t *parent, PRN *prn,
12541254 }
12551255#else
12561256 create_text (vwin , hsize , vsize , nlines , FALSE);
1257- #endif
1257+ #endif
12581258
12591259 text_table_setup (vwin -> vbox , vwin -> text );
12601260
@@ -1735,8 +1735,6 @@ windata_t *view_formatted_text_buffer (const gchar *title,
17351735
17361736 if (role == VIEW_BIBITEM ) {
17371737 add_text_closer (vwin );
1738- } else {
1739- //vwin_add_finder(vwin);
17401738 }
17411739
17421740 gtk_widget_show (vwin -> vbox );
@@ -1745,6 +1743,9 @@ windata_t *view_formatted_text_buffer (const gchar *title,
17451743 gtk_widget_show (vwin -> main );
17461744 gtk_widget_grab_focus (vwin -> text );
17471745 connect_text_sizer (vwin );
1746+ vwin -> flags |= VWIN_USE_FOOTER ;
1747+ g_signal_connect (G_OBJECT (vwin -> main ), "key-press-event" ,
1748+ G_CALLBACK (catch_viewer_key ), vwin );
17481749 }
17491750
17501751 return vwin ;
0 commit comments