<?xml version="1.0"?>
<page id="GimpUi.Ruler.add_track_widget"
      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.Ruler" group="method" type="guide"/>
    <api:function>
      <api:returns>
        <api:type>none</api:type>
      </api:returns>
      <api:name>gimp_ruler_add_track_widget</api:name>
      <api:arg>
        <api:type>GimpUi.Ruler</api:type>
        <api:name>self</api:name>
      </api:arg>
      <api:arg>
        <api:type>Gtk.Widget</api:type>
        <api:name>widget</api:name>
      </api:arg>
    </api:function>
  </info>
  <title>GimpUi.Ruler.add_track_widget</title>
  <synopsis><code mime="text/x-python">
@accepts(GimpUi.Ruler, Gtk.Widget)
@returns(none)
def add_track_widget(self, widget):
    # Python wrapper for gimp_ruler_add_track_widget()
  </code></synopsis>
  <p>Adds a "track widget" to the ruler. The ruler will connect to
GtkWidget:motion-notify-event: on the track widget and update its
position marker accordingly. The marker is correctly updated also
for the track widget's children, regardless of whether they are
ordinary children of off-screen children.</p>
  <p>Since 2.8</p>
<terms>
<item>
<title><code>self</code></title>
  <p>a <link xref="GimpUi.Ruler"/></p>
</item>
<item>
<title><code>widget</code></title>
  <p>the track widget to add</p>
</item>
</terms>

</page>
