Make document grab focus in open_file_line, to close the pane

master
Yevgen Muntyan 2006-06-25 05:49:41 -05:00
parent 8c04a15fd6
commit c24d0bfb82
1 changed files with 2 additions and 0 deletions

View File

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