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:
GFileA
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:
IdeBufferOpenFlagsOptional flags when opening the file.
position-
Type:
PanelPositionA position to open the page.
The argument can be NULL.The data is owned by the caller of the method. cancellable-
Type:
GCancellableA
GCancellable.The argument can be NULL.The data is owned by the caller of the method. callback-
Type:
GAsyncReadyCallbackA
GAsyncReadyCallbackto execute upon completion.The argument can be NULL. user_data-
Type:
gpointerClosure data for
callback.The argument can be NULL.The data is owned by the caller of the method.