Method

IdeTweaksAddinadd_callback

Declaration

void
ide_tweaks_addin_add_callback (
  IdeTweaksAddin* self,
  const char* name,
  GCallback callback
)

Description

Adds callback to addin so that it is registered when the tweaks template, set by ide_tweaks_addin_set_resource_path(), is expanded by an IdeTweaks.

Parameters

name

Type: const char*

The name of the callback within the template scope.

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

Type: GCallback

The address of the callback.