From 2e361f2cb5a6d84ec57696ba9b975c0dc2f2bace Mon Sep 17 00:00:00 2001 From: Yevgen Muntyan <17531749+muntyan@users.noreply.github.com> Date: Sun, 25 Jun 2006 05:49:56 -0500 Subject: [PATCH] moo_editor_open_file_line() --- moo/moopython/pygtk/mooeditor.defs | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/moo/moopython/pygtk/mooeditor.defs b/moo/moopython/pygtk/mooeditor.defs index febe226d..23131664 100644 --- a/moo/moopython/pygtk/mooeditor.defs +++ b/moo/moopython/pygtk/mooeditor.defs @@ -73,13 +73,26 @@ '("const-char*" "filename" (null-ok) (default "NULL")) '("const-char*" "encoding" (null-ok) (default "NULL")) ) - (docstring "open_file(window=None, parent=None, filename=None, encoding=None) -> bool.\n" + (docstring "open_file(window=None, parent=None, filename=None, encoding=None) -> Edit.\n" "\n" "Opens a file.\n" "If filename is None, it asks user for filename first, and returns False if\n" "user pressed Cancel in the file chooser dialog.") ) +(define-method open_file_line + (of-object "MooEditor") + (c-name "moo_editor_open_file_line") + (return-type "MooEdit*") + (parameters + '("const-char*" "filename") + '("int" "line") + ) + (docstring "open_file_line(filename, line) -> Edit.\n" + "\n" + "Opens a file and places cursor on the given line.") +) + (define-method get_doc (of-object "MooEditor") (c-name "moo_editor_get_doc")