Constructor
IdeTweaksnew_for_context
Description
Creates a new IdeTweaks
for context
.
If context
is NULL
, this function acts the same as ide_tweaks_new().
If context
is non-NULL
, this function will expose context
as
“IdeContext” to the templates as well as with the IdeTweaks:context
property to make property bindings easier with lookup.
IdeTweaks:project-id
is also set when context
is non-NULL
.
Parameters
context
-
Type:
IdeContext
An
IdeContext
orNULL
.The argument can be NULL
.The data is owned by the caller of the function.
Return value
Type: IdeTweaks
A new IdeTweaks
.
The caller of the function takes ownership of the data, and is responsible for freeing it. |