<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" xmlns:xi="http://www.w3.org/2001/XInclude" type="guide" style="task" id="window.js" xml:lang="gl">
  <info>
  <title type="text">Xanela (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>jewelfox@fursona.net</email>
      <years>2012</years>
    </credit>

    <desc>Unha xanela de primeiro nivel que pode conter a outros widgets</desc>
  </info>

  <title>Xanela</title>
<table>
  <tr>
    <td>
      <media type="image" mime="image/png" src="media/window.png"/>
      <p>Un GtkApplication mínimo</p>
    </td>
    <td>
      <p>Use <link xref="GtkApplicationWindow.js">Xanela de aplicativo</link> se quere compatibilidade con GMenu.</p>
    </td>
  </tr>
</table>
      <code mime="application/javascript" style="numbered">
<xi:include href="samples/window.js" parse="text"><xi:fallback/></xi:include></code>
<p>Neste exemplo empregaremos o seguinte:</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>
