<?xml version="1.0"?>
<page id="GimpUi.ColorNotebook.set_has_page"
      type="topic"
      style="method"
      xmlns="http://projectmallard.org/1.0/"
      xmlns:api="http://projectmallard.org/experimental/api/"
      xmlns:ui="http://projectmallard.org/1.0/ui/">
  <info>
    <link xref="GimpUi.ColorNotebook" group="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>Gtk.Widget</api:type>
      </api:returns>
      <api:name>gimp_color_notebook_set_has_page</api:name>
      <api:arg>
        <api:type>GObject.Type</api:type>
        <api:name>page_type</api:name>
      </api:arg>
      <api:arg>
        <api:type>Boolean</api:type>
        <api:name>has_page</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>GimpUi.ColorNotebook.prototype.set_has_page</title>
  <synopsis><code mime="text/x-gjs">
function set_has_page(page_type: GObject.Type, has_page: Boolean): <link href="../Gtk-3.0/Gtk.Widget.html">Gtk.Widget</link> {
    // Gjs wrapper for gimp_color_notebook_set_has_page()
}
  </code></synopsis>
  <p>This function adds and removed pages to / from a <link xref="GimpUi.ColorNotebook"/>.
The <code>page_type</code> passed must be a <link xref="GimpUi.ColorSelector"/> subtype.</p>

<terms>
<item>
<title><code>page_type</code></title>
  <p>The <link href="../GLib-2.0/GLib.Type.html">GLib.Type</link> of the notebook page to add or remove.</p>
</item>
<item>
<title><code>has_page</code></title>
  <p>Whether the page should be added or removed.</p>
</item>
<item>
<title><code>Returns</code></title>
  <p>The new page widget, if <code>has_page</code> was
              <code>true</code>, or <code>null</code> if <code>has_page</code> was <code>false</code>.</p>
</item>
</terms>

</page>
