Method

ValentApplicationPluginopen

unstable since: 1.0

Declaration [src]

gboolean
valent_application_plugin_open (
  ValentApplicationPlugin* plugin,
  GFile** files,
  int n_files,
  const char* hint
)

Description [src]

Open the given files.

Implementations should override this method to handle files and URIs, as a result of GApplication::open being emitted on the primary instance of the application.

Available since: 1.0

Parameters

files

Type: An array of GFile*

An array of GFiles to open.

The length of the array is specified in the n_files argument.
The data is owned by the caller of the method.
n_files

Type: int

The length of the files array.

hint

Type: const char*

A hint (or “”).

The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.

Return value

Type: gboolean

TRUE if handled, or FALSE if not.