Method

IdeTweaksItemset_hidden_when

Declaration

void
ide_tweaks_item_set_hidden_when (
  IdeTweaksItem* self,
  const char* hidden_when
)

Description

Sets the “hidden-when” property.

Use this to hide IdeTweaksItem in situations where they should not be visible. Generally this is used to hide items when the IdeTweaksWindow is in project or application mode.

Currently supported values include:

  • application” to hide when in application-mode
  • project” to hide when in project-mode

Items that are hidden will not be visited by ide_tweaks_item_visit_children().

Parameters

hidden_when

Type: const char*

The value for when the item is hidden.

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