Method
IdeWorkbenchopen_async
Declaration
void
ide_workbench_open_async (
IdeWorkbench* self,
GFile* file,
const gchar* hint,
IdeBufferOpenFlags flags,
PanelPosition* position,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description
Requests that the workbench open file
.
If hint
is provided, that will be used to determine what workbench
addin to use when opening the file. The hint
name should match the
module name of the plugin.
flags
may be ignored by some backends.
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. flags
-
Type:
IdeBufferOpenFlags
Optional flags when opening the file.
position
-
Type:
PanelPosition
A position to open the page.
The argument can be NULL
.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.