SourceFile.setMountOperationFactory

Sets a #GtkSourceMountOperationFactory function that will be called when a #GMountOperation must be created. This is useful for creating a #GtkMountOperation with the parent #GtkWindow.

If a mount operation factory isn't set, g_mount_operation_new() will be called.

class SourceFile
void
setMountOperationFactory

Parameters

callback GtkSourceMountOperationFactory

a #GtkSourceMountOperationFactory to call when a #GMountOperation is needed.

userData void*

the data to pass to the @callback function.

notify GDestroyNotify

function to call on @user_data when the @callback is no longer needed, or %NULL.

Meta

Since

3.14