Method
IdeWorkbenchopen_at_async
Declaration
void
ide_workbench_open_at_async (
IdeWorkbench* self,
GFile* file,
const gchar* hint,
gint at_line,
gint at_line_offset,
IdeBufferOpenFlags flags,
PanelPosition* position,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description
Like ide_workbench_open_async(), this allows opening a file within the workbench. However, it also allows specifying a line and column offset within the file to focus. Usually, this only makes sense for files that can be opened in an editor.
at_line
and at_line_offset
may be < 0 to ignore the parameters.
flags
may be ignored by some backends
Use ide_workbench_open_finish()
to receive teh result of this
asynchronous operation.
Parameters
file
-
Type:
GFile
A
GFile
.The data is owned by the caller of the method. hint
-
Type:
const gchar*
An optional hint about what addin to use.
The argument can be NULL
.The data is owned by the caller of the method. The value is a NUL terminated UTF-8 string. at_line
-
Type:
gint
The line number to open at, or -1 to ignore.
at_line_offset
-
Type:
gint
The line offset to open at, or -1 to ignore.
flags
-
Type:
IdeBufferOpenFlags
Optional
IdeBufferOpenFlags
. position
-
Type:
PanelPosition
No description available.
The data is owned by the caller of the method. cancellable
-
Type:
GCancellable
A
GCancellable
.The argument can be NULL
.The data is owned by the caller of the method. callback
-
Type:
GAsyncReadyCallback
A
GAsyncReadyCallback
to execute upon completion.The argument can be NULL
. user_data
-
Type:
gpointer
Closure data for
callback
.The argument can be NULL
.The data is owned by the caller of the method.