Make document grab focus in open_file_line, to close the pane
parent
8c04a15fd6
commit
c24d0bfb82
|
@ -1656,6 +1656,7 @@ moo_editor_open_file_line (MooEditor *editor,
|
|||
{
|
||||
moo_text_view_move_cursor (MOO_TEXT_VIEW (doc), line, 0, FALSE, FALSE);
|
||||
moo_editor_set_active_doc (editor, doc);
|
||||
gtk_widget_grab_focus (GTK_WIDGET (doc));
|
||||
return doc;
|
||||
}
|
||||
|
||||
|
@ -1665,6 +1666,7 @@ moo_editor_open_file_line (MooEditor *editor,
|
|||
/* XXX */
|
||||
moo_editor_set_active_doc (editor, doc);
|
||||
moo_text_view_move_cursor (MOO_TEXT_VIEW (doc), line, 0, FALSE, TRUE);
|
||||
gtk_widget_grab_focus (GTK_WIDGET (doc));
|
||||
return doc;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue