<?xml version="1.0"?>
<page id="GimpUi.IntRadioFrameSensitivityFunc"
      type="topic"
      style="callback"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="index" group="callback" type="guide"/>
  </info>
  <title>GimpUi.IntRadioFrameSensitivityFunc</title>
  <synopsis><code mime="text/x-gjs">
function onIntRadioFrameSensitivityFunc(value: Number(gint), new_value: Number(gint)): Boolean {
}
  </code></synopsis>
  <p>Signature for a function called on each radio button value and data,
each time the %GimpIntRadioFrame is drawn, to make some radio button
insensitive.
If the function returns <code>false</code>, it usually means that the value is
not a valid choice in current situation. In this case, you might want
to toggle instead another value automatically. Set <code>new_value</code> to the
value to toggle. If you leave this untouched, the radio button will
stay toggled despite being insensitive. This is up to you to decide
whether this is meaningful.</p>

<terms>
<item>
<title><code>value</code></title>
  <p>the value associated with a radio button.</p>
</item>
<item>
<title><code>new_value</code></title>
  <p>the value to check instead if the function returns <code>false</code>.</p>
</item>
<item>
<title><code>Returns</code></title>
  <p><code>true</code> if the button stays sensitive, <code>false</code> otherwise.</p>
</item>
</terms>

</page>
