Blob Blame History Raw
<?xml version='1.0' encoding='UTF-8'?>
<page xmlns="http://projectmallard.org/1.0/"
      xmlns:its="http://www.w3.org/2005/11/its"
      xmlns:xi="http://www.w3.org/2001/XInclude"
      type="guide" style="task"
      id="window.js">
  <info>
  <title type="text">Window (JavaScript)</title>
    <link type="guide" xref="beginner.js#windows"/>
    <revision version="0.1" date="2012-04-14" status="draft"/>

    <credit type="author copyright">
      <name>Taryn Fox</name>
      <email its:translate="no">jewelfox@fursona.net</email>
      <years>2012</years>
    </credit>

    <desc>A basic window which can contain other widgets</desc>
  </info>

  <title>Window</title>
<table>
  <tr>
    <td>
      <media type="image" mime="image/png" src="media/window.png"/>
      <p>A minimal GtkApplication</p>
    </td>
    <td>
      <p>Use <link xref="GtkApplicationWindow.js">ApplicationWindow</link> if you need GMenu support.</p>
    </td>
  </tr>
</table>
      <code mime="application/javascript" style="numbered">
<xi:include href="samples/window.js" parse="text"><xi:fallback/></xi:include></code>
<p>
In this example we used the following:
</p>
<list>
<item><p><link href="http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Application.html">Gtk.Application</link></p></item>
<item><p><link href="http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Window.html">Gtk.Window</link></p></item>
</list>

</page>