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" type="topic" style="task" id="tour-application" xml:lang="pt-BR">

  <info>
    <link type="next" xref="tour-summary"/>
    <revision version="0.1" date="2013-06-17" status="stub"/>

    <credit type="author copyright">
      <name>Ekaterina Gerasimova</name>
      <email its:translate="no">kittykat3756@gmail.com</email>
      <years>2013</years>
    </credit>
    <credit type="author copyright">
      <name>Gordon Hill</name>
      <email its:translate="no">caseyweederman@gmail.com</email>
      <years>2013</years>
    </credit>

    <include xmlns="http://www.w3.org/2001/XInclude" href="cc-by-sa-3-0.xml"/>

    <desc>Finalize o aplicativo e execute o script.</desc>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Enrico Nicoletto</mal:name>
      <mal:email>liverig@gmail.com</mal:email>
      <mal:years>2009</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Rafael Fontenelle</mal:name>
      <mal:email>rafaelff@gnome.org</mal:email>
      <mal:years>2013, 2014, 2016, 2017</mal:years>
    </mal:credit>
  
    <mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
      <mal:name>Isaac Ferreira Filho</mal:name>
      <mal:email>isaacmob@riseup.net</mal:email>
      <mal:years>2018</mal:years>
    </mal:credit>
  </info>

  <title>Executando seu aplicativo</title>
  <links type="prevnext" style="top"/>
  <links type="series" style="floatend">
    <title>Primeiros passos com GNOME</title>
  </links>

  <example>
    <p>Crie o <code>app</code> do novo objeto e chame o método <code>run</code> para executar o aplicativo:</p>
    <code>
let app = new HelloWorld();
app.application.run(ARGV);
</code>

    <p>Salve o script como <file>helloworld.js</file>, execute <cmd>chmod +x helloworld.js</cmd> para marcá-lo como executável e execute-o com <cmd>./helloworld.js</cmd>.</p>
  </example>

  <media type="image" src="media/glade-result.png">
    <p>Imagem de uma janela básica.</p>
  </media>
  <p>Essa janela é gerada a partir do arquivo do <app>Glade</app> e é vinculada aos eventos <app>Gtk</app>. Você agora possui um aplicativo Gtk completamente funcional!</p>

  <links type="prevnext"/>
</page>